euporie.core.tabs.notebook.read_nb

euporie.core.tabs.notebook.read_nb(fp, as_version=nbformat.NO_CONVERT, fmt=None, config=None, **kwargs)

Read a notebook from a file name or a file object

Parameters:
  • fp – a file name or a file object

  • as_version – see nbformat.read

  • fmt – (optional) the jupytext format like md, py:percent, …

  • config – (optional) a Jupytext configuration object

  • kwargs – (not used) additional parameters for nbformat.read

Returns:

the notebook