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 | 2023-03-12 16:58 |
parent | z14KWQKD4bwE jhvyoIrxoeSz |
pypackage | nbproject==0.8.2 pandas==1.5.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 numbers increase consecutively: Awesome!
ℹ️ 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.