A Python library for executing Jupyter notebooks in non-interactive environments. Supports capturing outputs, rendering inline plots, and running notebooks from the command line. Current version 0.2.2, released March 2024. Maintained by AnswerDotAI, release cadence irregular.
pip install execnbVerified import paths — ran on the pinned version, not inferred.
Execute a Jupyter notebook file and iterate over cell outputs.
Update imports to use execnb.nbio for exec_nb, read_nb, NBIO. If using fastcore.nbio directly, adjust accordingly.
Use mpl_format=None in exec_nb to skip matplotlib setup when not needed.
Ensure notebooks are prepared for batch execution, avoiding input() calls or interactive widgets.
Upgrade to >=0.1.17 or manually set cell IDs in the notebook metadata.