bundles / nbformat latest / nbformat / reader / reads
function
nbformat.reader:reads
source: /nbformat/reader.py:49
Signature
def reads(s, **kwargs)Summary
Read a notebook from a json string and return the NotebookNode object.
Extended Summary
This function properly reads notebooks of any version. No version conversion is performed.
Parameters
s: unicode | bytesThe raw string or bytes object to read the notebook from.
Returns
nb: NotebookNodeThe notebook that was read.
Raises
: ValidationErrorNotebook JSON for a given version is missing an expected key and cannot be read.
: NBFormatErrorSpecified major version is invalid or unsupported.
Aliases
nbformat.reader.reads