{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/16"}],"enrichment":{"capability":"nb-clean removes execution counts, metadata, and outputs from Jupyter notebooks to prepare them for version control, and can automatically clean notebooks via Git filters or pre-commit hooks.","skillfed_tags":["jupyter-workflow","git-integration","notebook-cleaning"],"use_cases":["Automatically clean notebooks before each Git commit using a pre-commit hook to keep diffs focused on actual code changes.","Check notebooks in CI pipelines to enforce that committed notebooks contain no execution counts or stale outputs.","Preserve specific cell metadata fields (e.g., tags) while removing outputs, for workflows that rely on notebook annotations.","Use as a Git filter to clean notebooks on staging without modifying your local working copy.","Integrate into a Python script to programmatically clean or validate notebooks as part of a data pipeline."],"what_it_does":"nb-clean is a command-line tool and Python library that strips transient metadata from Jupyter notebooks\u2014execution counts, cell outputs, and notebook metadata\u2014to reduce noise in version control diffs. It works by removing information that changes every time a notebook is run but carries no semantic value for code review or collaboration.\n\nThe package integrates directly into your Git workflow via a configurable filter (which cleans notebooks as they're staged) or as a pre-commit hook (which modifies notebooks on disk before commit). It can also be used standalone to check whether a notebook is clean or to clean notebooks in place. Fine-grained flags let you preserve specific metadata fields (like tags for tools such as papermill) or outputs when needed.","worth_installing":"Yes. nb-clean solves a real problem for teams using Jupyter in version control: it eliminates noise from execution state and metadata, making diffs readable and reducing merge conflicts. The package is stable (Production/Stable status), actively maintained, has no known vulnerabilities, and integrates seamlessly into standard Git workflows. Install it if you commit notebooks to Git."},"id":"nb-clean","links":{"html":"https://skillfed.io/packages/nb-clean","md":"https://skillfed.io/packages/nb-clean.md","pypi":"https://pypi.org/project/nb-clean/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-10-19","license_spdx":null,"license_treatment":"permissive","name":"nb-clean","python_support":"supports_current","summary":"Clean Jupyter notebooks for versioning"},"popularity":{"monthly_downloads":111278,"position":12422,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.1"}
