Quickstart¶
from nbproject import header, publish, meta
header(parent=["z14KWQKD4bwE", "jhvyoIrxoeSz"]) # Initializes & displays metadata.
id | 3m2Q6UBuwgSH |
version | 0 |
time_init | 2022-07-18 12:32 |
time_run | 2024-10-16 16:56 |
parent | z14KWQKD4bwE jhvyoIrxoeSz |
pypackage | nbproject==0.10.5 pandas==2.2.3 |
Note
Passing
parent
toheader()
is optional. You can use it to point viewers to upstream notebooks or to build pipelines.You can also pass
pypackage
toheader()
to track secondary dependencies.
import pandas # Any imported package is automatically tracked.
Once you’re happy with the present version of your notebook:
publish() # Sets version, checks consecutiveness & title, writes current pypackages with versions.
✓ cell execution numbers increase consecutively
• Set notebook version to 0 & wrote pypackages.
Note
If you’re a developer and want to build on top of nbproject, the API offers:
meta
to access metadata: The metadata API.dev
for development utils.