A tool to clean Jupyter notebooks for version control, removing cell outputs, execution counts, and metadata. Current version is 4.0.1, released March 2025. Release cadence is irregular, with major versions dropping support for old Python releases.
pip install nb-cleanNo compatibility data collected yet for this library.
nb-clean is a command-line tool; there is no Python API to import.
Upgrade Python to >=3.9 or pin nb-clean to <4.0.0.
Upgrade Python to >=3.8 or pin nb-clean to <3.0.0.
Use appropriate flags: -o (preserve cell outputs), -c (preserve execution counts), -n (preserve notebook metadata).
Use the flag with a comma-separated list: --preserve-cell-metadata key1,key2
Do not import; run as a CLI command: nb-clean clean notebook.ipynb
No dependency data recorded yet.