{ } Raw JSON

bundles / nbformat 5.11.1 / nbformat / reader / read

function

nbformat.reader:read

source: /nbformat/reader.py:87

Signature

def read(fp, **kwargs)

Summary

Read a notebook from a file and return the NotebookNode object.

Extended Summary

This function properly reads notebooks of any version. No version conversion is performed.

Parameters

fp : file

Any file-like object with a read method.

Returns

nb : NotebookNode

The notebook that was read.

Aliases

  • nbformat.reader.read