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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sos_papermill-0.2.3.tar.gz | 11.6 kB | Without provenance | Details for sos_papermill-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sos_papermill-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for sos_papermill-0.2.3-py3-none-any.whl |
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
|
Security for sos-papermill 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.