Skip to main content

PyPI version Build Status

sos-papermill: Batch execution of SoS Notebooks using papermill

papermill is a tool for parameterizing, executing, and analyzing Jupyter Notebooks. It lets you parameterize and execute notebooks in batch mode.

SoS Notebook is a Jupyter kernel that allows the use of multiple kernels in one Jupyter notebook. Using language modules that understand datatypes of underlying languages (modules sos-bash, sos-r, sos-matlab, etc), SoS Notebook allows data exchange among live kernels of supported languages. SoS Notebook is also a frontend to the SoS Workflow that allows the development and execution of workflows from Jupyter notebooks.

Because the default papermill executor assumes a single kernel for the entire notebook, sos-papermill is provided as a customized engine for the execution of SoS notebooks.

Installation

pip install sos-papermill

or

conda install sos-papermill -c conda-forge

if you are using a conda environment.

Note that you will need to install sos-notebook, all relevant kernels (e.g. bash_kernel, irkernel) and related language modules (e.g. sos-bash, sos-r) to execute notebooks that use these kernels. Please refer to Running SoS for details on how to install SoS Notebook.

Documentation

sos-papermill provides sos engine for papermill. All you need to do is to add option --engine sos to any papermill command that you might use:

papermill --engine sos [other options]

For example, to execute a parametrized notebook with parameter cutoff, you can use command

papermill --engine sos my_experiment.ipynb experiment_cutoff_2.ipynb -y '{"cutoff": 2}'

Please refer to the Papermill documentation for details on the use of papermill.

Note that parameters can be defined in either a SoS or a subkernel cell but in both cases parameters should be passed in Python syntax. Parameters defined in a subkernel will be automatically transferred to the subkernel using a %put magic.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sos_papermill-0.2.3.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

sos_papermill-0.2.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file sos_papermill-0.2.3.tar.gz.

File metadata

  • Download URL: sos_papermill-0.2.3.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sos_papermill-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1f94ffadf4b7884983500acd9c4c633f0ff4a504c1d1a8b7c0a09e379c898923
MD5 08859758a0d9c4a1bb9a5249d4e2e0ad
BLAKE2b-256 27b63748f8e7f31134c30896149ee5d7688b19fd26935e5a149009282b23134c

See more details on using hashes here.

File details

Details for the file sos_papermill-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: sos_papermill-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sos_papermill-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a645e9ebbaa346a514c99beca50200c96f104ee990473e995a0e32bc82e0a1c2
MD5 abb08c846302dd390b900fd821059bdc
BLAKE2b-256 a8b01f376bbdfbdad638cd7e58c9970ed65d628e3b4e1a06875ff0e3a22aba8c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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