nbproject.dev#

Developer API.

Metadata#

MetaLive(nb_path[, time_run, env])

Live properties of the notebook.

MetaStore(meta_container[, filepath, env])

The wrapper class for metadata stored in the notebook file.

MetaContainer(**data)

The metadata stored in the notebook file.

Functionality#

infer_pypackages(content[, add_pkgs, ...])

Parse notebook object and infer all pypackages.

check_consecutiveness(nb[, calling_statement])

Check whether code cells have been executed consecutively.

check_last_cell(nb, calling_statement)

Check whether code has been executed in the last cell.

set_version([version, stored_version])

(Auto-) set version.

Notebook file helpers#

Notebook(**data)

Jupyter notebook model.

initialize_metadata([nb, pypackage, parent])

Initialize nbproject metadata.

notebook_path([return_env])

Return the path to the current notebook.

read_notebook(filepath)

Read a notebook from disk.

write_notebook(nb, filepath)

Write the notebook to disk.