Manually specify a filepath upon init¶
Here we see how nbproject
prints a metadata header for a notebook that has been initialized.
from nbproject import header
header(filepath="example-after-init-set-filename.ipynb")
id | KLqggebgs7Tq |
version | 0 |
time_init | 2022-04-18 22:07 |
time_run | 2024-10-16 16:56 |
pypackage | nbproject==0.10.5 |
from nbproject import meta
Show code cell content
assert meta.store.id == "KLqggebgs7Tq"
assert hasattr(meta.store, "time_init")