No project description provided
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.0.0.tar.gz
(10.1 kB
view hashes)
Built Distribution
nb_helpers-0.0.0-py3-none-any.whl
(12.4 kB
view hashes)
Close
Hashes for nb_helpers-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 323f8d22c5b72b90ce0b8384be9e65dc3d69de702de62bbee6ef15e879a2586f |
|
MD5 | 55c1f174ad76f3b5a8c39b8b547b74b5 |
|
BLAKE2b-256 | 0ce1571b46eee27e57bde691384a91ff3dce713530e106e84e2edf524391b311 |