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.

Release files for sos-papermill 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sos-papermill 0.2.3
File Size Uploaded
sos_papermill-0.2.3.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sos-papermill 0.2.3
File Interpreter ABI Platform
sos_papermill-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / sos_papermill-0.2.3.tar.gz

Download URL sos_papermill-0.2.3.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1f94ffadf4b7884983500acd9c4c633f0ff4a504c1d1a8b7c0a09e379c898923
BLAKE2b-256 checksum
How to use checksums
27b63748f8e7f31134c30896149ee5d7688b19fd26935e5a149009282b23134c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / sos_papermill-0.2.3-py3-none-any.whl

Download URL sos_papermill-0.2.3-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a645e9ebbaa346a514c99beca50200c96f104ee990473e995a0e32bc82e0a1c2
BLAKE2b-256 checksum
How to use checksums
a8b01f376bbdfbdad638cd7e58c9970ed65d628e3b4e1a06875ff0e3a22aba8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page