Import Jupyter Notebooks as Python modules and scripts. Supports Python 3.8+, and allows importing .ipynb files directly. Version 2023.11.1 adds Python 3.12 compatibility, top-level await async support, and improved entry points. Release cadence is sporadic, with minor updates as needed.
pip install importnbVerified import paths — ran on the pinned version, not inferred.
Basic usage: use Notebook context manager to import .ipynb files as modules.
Rename your notebook file to avoid conflicts.
Avoid relying on importnb.parameterize; use pytest or parametrize directly.
Ensure your notebook files end with .ipynb.
Use: `from importnb import Notebook`
Ensure the .ipynb file is in the same directory as your script or use sys.path.append().
Check notebook cells for syntax errors and ensure compatibility with your Python version.
No dependency data recorded yet.