jellycell.run.capture

Translate Jupyter iopub messages to lightweight dicts.

The runner turns these into :class:~jellycell.cache.manifest.OutputRecord instances after storing blob data. Keeping this layer thin and data-only makes it trivial to unit-test without a live kernel.

Module Contents

Functions

parse_iopub_message

Convert a Jupyter iopub message to a normalized dict.

Data

API

jellycell.run.capture.IDLE: Final[dict[str, str]]

None

jellycell.run.capture.parse_iopub_message(msg: dict[str, Any]) dict[str, Any] | None

Convert a Jupyter iopub message to a normalized dict.

Returns None for messages we don’t care about (e.g., execute_input).