Skip to main content

Run sequences of Jupyter notebooks as a workflow from the command line.

Project description

nbpipe

Run sequences of Jupyter notebooks as a workflow from the command line.

Installation

pip install nbpipe

Usage

Define a workflow in a YAML file:

name: my_workflow
steps:
  - notebook: prepare_data.ipynb
    output: data/processed.csv
  - notebook: train_model.ipynb
    output: models/model.pkl
  - notebook: evaluate.ipynb

Then run it:

nbpipe run workflow.yaml

Each notebook is executed in place — cell outputs are written back to the .ipynb file, and any files the notebook saves to disk are its real outputs.

If a step has an output field, nbpipe checks that the file exists after the notebook runs and raises an error if it does not. Steps without an output field are always considered successful as long as no cell raises an exception.

Workflow YAML

Field Required Description
name yes Name of the workflow
steps yes Ordered list of steps to run

Each step:

Field Required Description
notebook yes Path to the .ipynb file (relative to the YAML file)
output no Path to a file the notebook is expected to produce

All paths are relative to the directory containing the YAML file.

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

nbpipe-0.1.1.tar.gz (58.9 kB view details)

Uploaded Source

Built Distribution

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

nbpipe-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file nbpipe-0.1.1.tar.gz.

File metadata

  • Download URL: nbpipe-0.1.1.tar.gz
  • Upload date:
  • Size: 58.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nbpipe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ea8a2ff659629b819023364a915e5ee2293660c046bde7071fc3f823bcbbfc9
MD5 bdad5ea0d2ef025964fea08d4ab2ae57
BLAKE2b-256 b130d5800b3c0f72bcb8e842d86f8cca7a8394f9792fbf2d722fe46afe11ec2e

See more details on using hashes here.

File details

Details for the file nbpipe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nbpipe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nbpipe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b420080a6c0a3709ecff1e2e815056f2ec536e05a6fb245b8bf6f27399b6fda5
MD5 c6158e4ace1194a2f961b6b56722e8dc
BLAKE2b-256 abaef9e05ac9d7ec8e0828b7846f10c68724c9afd419fb35aa2c690d47658470

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