Skip to main content

Notebook-Based, Super CUstomizable Infrastructure for Diagnostics

Project description

nbscuid 🦑

Notebook-Based, Super CUstomizable Infrastructure for Diagnostics

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.

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

  1. Clone this repo

  2. Activate the environment you want to install nbscuid in. Within the cloned nbscuid directory, run:

    pip install .
    

    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 .
    

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.6.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nbscuid-0.0.6-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file nbscuid-0.0.6.tar.gz.

File metadata

  • Download URL: nbscuid-0.0.6.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for nbscuid-0.0.6.tar.gz
Algorithm Hash digest
SHA256 6c0237ccd7f67c873c48f6665a888d1c56a93e7ce9be91e4c4746b9a36cf2098
MD5 dece98368c8f5db43a54e08205b886a8
BLAKE2b-256 1be5609d1b5bdff640a144c1b00b576bf8112bebc98852dab0ab9d1d6e8fd205

See more details on using hashes here.

File details

Details for the file nbscuid-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: nbscuid-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for nbscuid-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3dd3f1aa07c0b49a9e9eda7a7d684532258f6ce0da9a1b858e97bdde9e7193d4
MD5 86a6c5ed721758a732da9ffc004beb92
BLAKE2b-256 eeb557a1ae6536e0c108e999285bf8856e4ed39eaf65827659b1f9b7501f0c6f

See more details on using hashes here.

Supported by

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