A simple package to clean Jupyter notebooks
Project description
Clean up notebook
A simple command to clean up your Jupyter notebooks.
Usage
If you want to run this tool in a CLI, pipx is advised.
pipx install clean-notebook
To use clean-notebook with pre-commit, add this to your .pre-commit-config.yaml:
- repo: https://github.com/hoxbro/clean_notebook
rev: "" # Use the sha / tag you want to point at
hooks:
- id: clean-notebook
Configuration
To clean a notebook run the command clean-notebook example.ipynb or if you want to do it for multiple files clean-notebook example1.ipynb example2.ipynb.
The following arguments are supported --dry-run to not overwrite the file and --keep-empty to keep empty cells. If you want not to delete a specific metadata key, the -i/--ignore argument can be used. If more keys should be ignored: clean-notebook . -i tags -i slideshow. If you want remove ending newlines in code cells, use the -s/--strip-trailing-newlines argument.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clean_notebook-0.2.0.tar.gz.
File metadata
- Download URL: clean_notebook-0.2.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16df7c59f014fb276ba064a4d7698eb4dbd964c7d1bc86da1c701fe644bf906f
|
|
| MD5 |
2db652b212e72374a356e49199ffad1d
|
|
| BLAKE2b-256 |
b517b97636120b58a568b3ff12b3822d207e0120feea6273510b86d8a8f52c5a
|
Provenance
The following attestation bundles were made for clean_notebook-0.2.0.tar.gz:
Publisher:
build.yaml on hoxbro/clean_notebook
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clean_notebook-0.2.0.tar.gz -
Subject digest:
16df7c59f014fb276ba064a4d7698eb4dbd964c7d1bc86da1c701fe644bf906f - Sigstore transparency entry: 910346148
- Sigstore integration time:
-
Permalink:
hoxbro/clean_notebook@3b2c8151041168800c746b6d021c9a4b34187f3b -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/hoxbro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@3b2c8151041168800c746b6d021c9a4b34187f3b -
Trigger Event:
push
-
Statement type:
File details
Details for the file clean_notebook-0.2.0-py3-none-any.whl.
File metadata
- Download URL: clean_notebook-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af1e20ac7bba6d6c8fbc137587d7d8c48b171d90db9d4465ae8f08d124397629
|
|
| MD5 |
9da8c2d1be9111c0d813953fce6924fa
|
|
| BLAKE2b-256 |
5423326d88bbb4c030923dca54e67f193c59e665cdaf160654fffa705d33c6ed
|
Provenance
The following attestation bundles were made for clean_notebook-0.2.0-py3-none-any.whl:
Publisher:
build.yaml on hoxbro/clean_notebook
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clean_notebook-0.2.0-py3-none-any.whl -
Subject digest:
af1e20ac7bba6d6c8fbc137587d7d8c48b171d90db9d4465ae8f08d124397629 - Sigstore transparency entry: 910346155
- Sigstore integration time:
-
Permalink:
hoxbro/clean_notebook@3b2c8151041168800c746b6d021c9a4b34187f3b -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/hoxbro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@3b2c8151041168800c746b6d021c9a4b34187f3b -
Trigger Event:
push
-
Statement type: