Notebook Executor
Use this skill when you need deterministic notebook execution in CI or local verification loops.
What this skill does
- Executes
.ipynbcode cells with plain Python. - Writes execution counts and stdout/error outputs back to notebook JSON.
- Supports writing to a separate output path (
--out) to avoid mutating source notebooks.
Command
uv run --python .venv/bin/python notebooks/python/scripts/execute_notebook_cells.py \
notebooks/python/08_algo_wheel_experiments.ipynb \
--out /tmp/openquant-artifacts/08_algo_wheel_experiments.executed.ipynb
File targets
- Executor:
notebooks/python/scripts/execute_notebook_cells.py - Notebook set:
notebooks/python/*.ipynb
Validation
uv run --python .venv/bin/python pytest python/tests/test_notebook_execute_script.py -q
Source: Open-Quant/openquant — distributed by TomeVault.