Skip to main content

Remove empty code and markdown cells from Jupyter notebooks (ideal for pre-commit hooks)

Project description

Usage with pre-commit

Add to your .pre-commit-config.yaml:

- repo: https://github.com/Drew5040/nbstrip-empty-cell
  rev: v0.1.0
  hooks:
    - id: nbstrip-empty-cells

Then install the pre-commit hook in your local repository:

pre-commit install

You can also run the hook manually on all files:

pre-commit run --all-files

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

nbstrip_empty_cells-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nbstrip_empty_cells-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file nbstrip_empty_cells-0.1.1.tar.gz.

File metadata

  • Download URL: nbstrip_empty_cells-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for nbstrip_empty_cells-0.1.1.tar.gz
Algorithm Hash digest
SHA256 78573594ba32b59f4334bc45063d4ca66e0f882b5bd36df3fe886dc88101b092
MD5 f7e5570ab47c351ddf16cb53a4dccace
BLAKE2b-256 e17d4784a9a0624f62ad3ad77d3b41867cf7da55bbf6f35bd9adfb1dcb8f88f6

See more details on using hashes here.

File details

Details for the file nbstrip_empty_cells-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nbstrip_empty_cells-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ed212ba585993c53e0c1f6592a72e69785e3e946daa3fd94dc209bcd25e448
MD5 85379c4c352b42c8cd2ba807c3d67e89
BLAKE2b-256 b973306c8c33b38a44d77d2f2b1d75792e05e5796ca0ae05d255826502692148

See more details on using hashes here.

Supported by

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