A set of tools for nb handling
Project description
nb_helpers
A simple tool to clean up notebooks from your repo
Install
Clone and then install using git:
pip install .
Usage
This little library gives you command line tools to clean, test and check your jupyter notebooks.
- Clean: When you call
clean_nbs
it will strip notebooks from the metadata, this helps prevent git conflicts. You can also pass the flag--clear_outs
and also remove cell outputs.
clean_nbs
>
┏━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ Notebook Path ┃ Status ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━┩
│ test_nb.ipynb │ Ok │
└───────────────┴────────┘
Usage on CI/CD of other projects
The main idea of this repo, is to strip out notebooks from wandb/examples
.
- TODO: test notebooks, as this cannot be done on github runners.
test_nbs --path examples/colabs --timeout 600
will run all notebooks inside examples/colabs
for at most 600 seconds each.
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
nb_helpers-0.1.3.tar.gz
(11.9 kB
view hashes)
Built Distribution
nb_helpers-0.1.3-py3-none-any.whl
(13.5 kB
view hashes)
Close
Hashes for nb_helpers-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e92e6fb595b71bf5cdaf00caa9b00d431df84b739b487d869da27abb1f6445a1 |
|
MD5 | fb89dd2dc67a0f7d4cbabcda3c863d7f |
|
BLAKE2b-256 | 7deca24ca0cca45806cb08fc891673335e1b1959af9f16893a35ee374a7e51fe |