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

Compute an ipynb notebook file and save it in place.

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 documentation.


Keyword arguments passed to compute_notebook.