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")
ℹ️ Assuming editor is Jupyter Lab.
id | KLqggebgs7Tq |
version | 0 |
time_init | 2022-04-18 22:07 |
time_run | 2023-04-26 14:23 |
pypackage | nbproject==0.8.6 |
from nbproject import meta
Show code cell content
assert meta.store.id == "KLqggebgs7Tq"
assert hasattr(meta.store, "time_init")