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.
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
clean-notebook-0.1.7.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for clean_notebook-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb550b73e5f1f5b901f8a970950b822a681cc4e77aea1d8fe57dbcceed639c2a |
|
MD5 | 6e1f6686a815b99bd722acbd8f2ce8e7 |
|
BLAKE2b-256 | 093727b4d3f3c8b92a3c15309f402b3e6e7f52fe8f7e3f3db9d26f1a19f8724d |