Basic metadata

from nbproject import header

header()
idz14KWQKD4bwE
version0
time_init2022-04-18 22:07
time_run2024-10-16 16:56
pypackagenbproject==0.10.5

id

The full 12-character ID makes your notebook unique. It keeps the chance that someone else has a notebook with the same ID below 1/1M even if you compare with 100M other notebooks. This is because there are >1e21 such 12-character IDs.

In practical settings, remembering the first 4 digits is good enough. They keep the collision probability below 1/1k for comparisons with up to 200 notebooks.

version

This is set to "0" upon initialization and either automatically set or set to any desired version upon publish().

time_init

This is the time stamp generated upon initialization of nbproject. If you use nbproject on every new notebook, it coincides with the time of notebook creation.

The time is displayed in UTC instead of a time-zone dependent local time.

time_run

This is the time at which you’re running the current notebook.

pypackage

Automatically inferred imported packages and their versions. Can be supplemented with manually set packages.

parent

Another pre-defined field in nbproject is called parent. You need to set it entirely manually right now, but you can use it to denote upstream dependencies of other notebooks you used in your workflow.