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.0.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.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nbstrip_empty_cells-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2edecdb644c8222e2252d5e01fc5ed98608905f8694336ecfa6af3873f0a0f12
MD5 42fcb6b08cdc71fe18cb0d5c870e7f98
BLAKE2b-256 d95fe26f4cfad93140b3dbca211ae655f47e784e3d6e892044f4feb7bebbc028

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nbstrip_empty_cells-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08797b4a274a9ff7e9406e7b047a56c2cdd4f27cfc6d9e8e20be07a423d5f5dd
MD5 d85ea700ae151e46e4532796b94e4c83
BLAKE2b-256 fa07334f1f51e1f785248d6c8b42583b59df8a22135eb5cf1d94b188afe9b09a

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