nbproject.dev.initialize_metadata

nbproject.dev.initialize_metadata(nb=None, pypackage=None, parent=None)

Initialize nbproject metadata.

Parameters:
  • nb (Notebook | None, default: None) – If a notebook is provided, also infer pypackages from the notebook.

  • pypackage (str | List[str] | None, default: None) – One or more python packages to track.

  • parent (str | List[str] | None, default: None) – One or more nbproject ids of direct ancestors in a notebook pipeline.

Return type:

MetaContainer