nb2slurm

nb2slurm takes a notebook workflow that runs for one subject (one catchment, one region, one number, …) and generates everything needed to run it for many subjects on a SLURM HPC — driven entirely from a notebook, no command line.

Pre-1.0

nb2slurm works end to end and is released on PyPI, but it is young: the API can still change in a minor release. Pin the version you depend on.

It is both a package and a scaffolder:

  • Package (logic): the importable nb2slurm — the Workflow class plus helpers for settings, done-tracking, environments and an SSH transport.

  • Scaffolder (templates): bundled Jinja2 templates that Workflow.build() renders into a concrete scripts/ directory for your project.

nb2slurm is the reusable generalisation of the eWaterCycle CCI-analysis-seamless project (its hardcoded cci.py + run_cci.slurm + submit_*.sh).

Where to start