papermill
Parameterize and run Jupyter and nteract Notebooks
What it is and what it does
Papermill is a tool for turning Jupyter Notebooks into parameterized, reusable components in data pipelines. It lets you inject parameters into a notebook before execution, then run it and capture the output—all without manual intervention. This is useful when you have a notebook-based analysis or report that needs to run with different inputs (e.g., different dates, thresholds, or datasets) or when you want to chain multiple notebooks together in a workflow.
The package works by looking for a cell tagged 'parameters' in your notebook, then injecting a new cell with your supplied parameter values before execution. You can pass parameters via the Python API, command-line flags, YAML files, or base64-encoded strings. It supports reading from and writing to local files, HTTP URLs, AWS S3, Azure storage, and Google Cloud Storage, making it suitable for both local development and cloud-based data pipelines.
Use it for:
- Run a financial or business report notebook on different dates (month-end, year-end) with parameters controlling the date range.
- Build a data pipeline where one notebook's output feeds into another notebook's parameters, automating multi-step analyses.
- Batch-execute the same analysis notebook across many datasets or cohorts, storing results in cloud storage.
- Integrate notebook-based models or analyses into scheduled jobs or CI/CD workflows without rewriting the logic.
- Generate parameterized reports on demand, injecting user-supplied values (thresholds, filters, model hyperparameters) at runtime.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Papermill parameterizes, executes, and analyzes Jupyter Notebooks programmatically, allowing you to inject parameters into notebooks and run them with different inputs via Python API or CLI.
Yes. Papermill is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem for anyone using Jupyter Notebooks in production pipelines or reporting workflows. The permissive BSD license poses no restrictions. Install it if you need to automate notebook execution with varying inputs or integrate notebooks into larger workflows.
Install
papermill on PyPI
pip
pip install papermilluv
uv add papermillpoetry
poetry add papermillInstalling papermill
Before you install
Low friction installation with a pure-Python wheel. Actively maintained with recent releases; last commit 2026-07-06 and 6469 repository stars indicate sustained community use.
License in practice
BSD license is permissive; you can use, modify, and distribute papermill with minimal restrictions in both open-source and commercial projects.
Quickstart
pip install papermill
import papermill as pm
pm.execute_notebook(
'path/to/input.ipynb',
'path/to/output.ipynb',
parameters=dict(alpha=0.6, ratio=0.1)
)
Requires Python 3.10 or later; notebook must contain a cell tagged 'parameters' for parameter injection to work as intended.
Verify before relying
- Whether optional I/O bundles (s3, azure, all) are required for your cloud storage use case or if local/HTTP execution alone suffices.
- Performance characteristics when executing large notebooks or running many notebooks in parallel workflows.
Package facts
| License | BSD (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — aiohttp, click, entrypoints, nbclient, nbformat, pyyaml, requests, tenacity, tqdm |
| Maintenance | actively maintained — 168 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 15,388,058/month — #1,188 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: papermill-2.7.0-py3-none-any.whl
Keywords: jupyter, mapreduce, notebook, nteract, pipeline
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
apache-airflow-providers-papermillIntegrates Papermill notebook execution into…
permissive · top 15,000 on PyPI
scrapbookScrapbook records data values and visual…
permissive · top 5,000 on PyPI
execnbExecutes Jupyter notebook code and captures…
permissive · top 15,000 on PyPI
jupyter-mcp-serverAn MCP server that exposes Jupyter notebooks…
permissive · top 15,000 on PyPI
mkdocs-jupyterConverts Jupyter notebooks and Python scripts…
permissive · top 15,000 on PyPI
testbooktestbook lets you write unit tests for Jupyter…
permissive · top 15,000 on PyPI
jupyter-nbmodel-clientProgrammatically interact with live Jupyter…
permissive · top 15,000 on PyPI
nbclientnbclient executes Jupyter notebooks…
permissive · top 1,000 on PyPI
jupyter-mcp-toolsExposes JupyterLab commands as MCP (Model…
permissive · top 15,000 on PyPI
json-eParameterizes and transforms JSON data…
copyleft · top 5,000 on PyPI