skillfed

papermill

Parameterize and run Jupyter and nteract Notebooks

papermill v2.7.0 15.4M downloads/30d#1,188 on PyPI6,469
Permissive license BSD Active released

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 papermill

uv

uv add papermill

poetry

poetry add papermill

Installing 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

Intended Audience :: DevelopersIntended Audience :: Science/ResearchIntended Audience :: System AdministratorsLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

jupyter notebook automationparameterized notebook executionnotebook workflow orchestrationbatch notebook runnerjupyter parameter injectionnotebook pipeline toolautomated notebook execution
notebook-automationdata-pipelinejupyter-tools

More Software Development packages