Skip to main content

Clean jupyter notebooks. Remove metadata and execution counts.

Project description

nbmetaclean

Pre-commit hook to clean Jupyter Notebooks metadata, execution_count and optionally output.

Pure Python, no dependencies.

Can be used as a pre-commit hook or as a command line tool.

Usage

Pre-commit hook

add to .pre-commit-config.yaml:

repos:
    - repo: https://github.com/ayasyrev/nbmetaclean
        rev: 0.0.8
        hooks:
        - id: nbclean
          name: nbclean
          entry: nbclean

Command line tool

Install:

pip install nbmetaclean

Usage:

nbclean

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbmetaclean-0.0.8.tar.gz (13.2 kB view hashes)

Uploaded Source

Built Distribution

nbmetaclean-0.0.8-py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page