compute_notebook_file

nbreport.compute.compute_notebook_file(path, as_version=None, **compute_args)

Compute an ipynb notebook file and save it in place.

Parameters:
path : pathlib.Path or str

Path of the notebook (ipynb) file. The computed notebook is saved in-place at this path as well.

as_version : int, optional

Notebook version to coerce the file into. None means nbformat.NO_CONVERT. See the nbformat.read documentation.

**compute_args

Keyword arguments passed to compute_notebook.