Jupyter notebooks are JSON documents with this high-level shape:
Jupyter notebooks are JSON documents with this high-level shape:
nbformat and nbformat_minormetadatacells (a list of markdown and code cells)When editing .ipynb files programmatically:
nbformat and nbformat_minor from the template.cells as an ordered list; do not reorder unless intentional.execution_count to null when unknown.outputs to an empty list when scaffolding.cell_type="markdown" and metadata={}.Prefer scaffolding from the bundled templates or new_notebook.py (for example, $CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py) instead of hand-authoring raw notebook JSON.