jellycell.export.ipynb

Export jellycell notebook + cached manifests to .ipynb.

The produced file opens in Jupyter/VSCode and shows cached outputs without re-executing. Blobs are retrieved from the CacheStore and reattached as nbformat output dicts.

Module Contents

Functions

export_ipynb

Write notebook_path + cached outputs to output_path as .ipynb.

API

jellycell.export.ipynb.export_ipynb(notebook_path: pathlib.Path, manifests_by_cell: dict[str, jellycell.cache.manifest.Manifest], store: jellycell.cache.store.CacheStore, output_path: pathlib.Path) pathlib.Path

Write notebook_path + cached outputs to output_path as .ipynb.

Args: notebook_path: Source jellycell .py notebook. manifests_by_cell: Map from cell_id (<stem>:<ordinal>) to the cached :class:Manifest for that cell (if any). store: Cache store for blob retrieval. output_path: Destination .ipynb path.

Returns: output_path for convenience.