Skip to main content

Notebook-Based, Super CUstomizable Infrastructure for Diagnostics

Project description

nbscuid 🦑

Notebook-Based, Super CUstomizable Infrastructure for Diagnostics

logo

This is a package to enable running notebook-based diagnostic workflows. Based on my-cesm-experiment by matt-long: https://github.com/matt-long/my-cesm-experiment.

See some examples of workflows at https://github.com/rmshkv/nbscuid-examples. For a basic tutorial, follow https://nbscuid.readthedocs.io/en/latest/tutorialsetup.html.

Capabilities

  • Integration with data catalogs
  • Inject custom parameters into code and Markdown cells
  • Run many notebooks at once on a parameter set, or different parameters per notebook
  • Run different notebooks in different environments
  • Cache intermediate data products
  • Quickly build a Jupyter book with results

Installation

  • Run:

    pip install nbscuid
    

    Alternatively, to install the commands nbscuid-run and nbscuid-build without installing all of nbscuid's dependencies, first install pipx with pip install pipx, then run:

    pipx install nbscuid
    

Running a notebook collection

Create a new folder that contains a config.yml file. (A guide to what goes in a config.yml file is coming soon!) This will be the run directory for your collection of notebooks, where all the computed notebooks will appear.

To run all the notebooks you've specified, execute:

nbscuid-run path/to/config.yml

To build the jupyter book if desired, execute:

nbscuid-build path/to/config.yml

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

nbscuid-0.0.10.tar.gz (123.8 kB view hashes)

Uploaded Source

Built Distribution

nbscuid-0.0.10-py3-none-any.whl (11.8 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