Skip to main content

No project description provided

Project description

CI

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


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)

Uploaded Source

Built Distribution

nb_helpers-0.0.0-py3-none-any.whl (12.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page