euporie.core.tabs.notebook.write_nb

euporie.core.tabs.notebook.write_nb(nb, fp, version=nbformat.NO_CONVERT, fmt=None, config=None, **kwargs)

Write a notebook to a file name or a file object

Parameters:
  • nb – the notebook

  • fp – a file name or a file object

  • version – see nbformat.write

  • fmt – (optional if fp is a file name) the jupytext format like md, py:percent, …

  • config – (optional) a Jupytext configuration object

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