jupyter-packaging
Jupyter Packaging Utilities.
What it is and what it does
Jupyter Packaging provides build-time utilities for Python packages that combine Python code with JavaScript assets or other pre-build steps. It wraps setuptools to inject custom build commands (like npm builds) before package distribution or development installation. The package is designed to be used as a build requirement in pyproject.toml, not as a runtime dependency—it helps package authors handle the complexity of building hybrid Python/JavaScript projects without burdening end users.
The package offers three integration patterns: as a build requirement with custom setup.py commands, as a full build backend via jupyter_packaging.build_api, or as a vendored setupbase.py module. It handles common Jupyter packaging tasks like managing pre-build steps, ensuring generated assets are included in distributions, and supporting both wheel and sdist formats through modern build tools.
Use it for:
- Build a Jupyter extension that includes TypeScript/JavaScript components compiled during package installation.
- Manage npm build steps in a Python package without requiring end users to have Node.js installed.
- Ensure generated assets (CSS, bundled JS) are correctly included in wheel distributions and source tarballs.
- Develop a Jupyter lab plugin with a Python backend and npm-managed frontend build pipeline.
- Configure data files and assets for Jupyter packages using setuptools with pre-build hooks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides build tools and utilities for packaging Jupyter Python projects that require pre-build steps, including JavaScript compilation and asset management.
Yes, if you are packaging a Jupyter project with JavaScript or other pre-build requirements. Install as a build-only dependency in pyproject.toml, not as a runtime requirement. The package is actively maintained, has no known vulnerabilities, and is widely used in the Jupyter ecosystem. Do not add it to your package's runtime dependencies.
Install
jupyter-packaging on PyPI
pip
pip install jupyter-packaginguv
uv add jupyter-packagingpoetry
poetry add jupyter-packagingInstalling jupyter-packaging
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with recent commits; intended as a build-time dependency only, not a runtime requirement for end users.
License in practice
BSD 3-Clause License permits commercial and private use with minimal restrictions; you may redistribute and modify freely provided you retain the license notice and disclaimer.
Quickstart
# In pyproject.toml
[build-system]
requires = ["jupyter_packaging>=0.10,<2"]
build-backend = "setuptools.build_meta"
# In setup.py
from jupyter_packaging import wrap_installers, npm_builder
builder = npm_builder()
cmdclass = wrap_installers(pre_develop=builder, pre_dist=builder)
from setuptools import setup
setup(cmdclass=cmdclass)
Intended for use during package build/development only; should not be listed as a runtime dependency in your package's requirements.
Verify before relying
- Whether the package supports Python 3.11+ despite classifiers listing only up to 3.10.
- Current status of the npm_builder for non-Node.js JavaScript toolchains or alternative build systems.
- Whether the package works with modern build frontends beyond setuptools.
Package facts
| License | BSD 3-Clause License Copyright (c) 2017, Project Jupyter All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — deprecation, packaging, setuptools, tomlkit, wheel |
| Maintenance | actively maintained — 1,450 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 989,138/month — #4,567 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jupyter_packaging-0.12.3-py3-none-any.whl
Keywords: ipython, jupyter, packaging
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
hatch-jupyter-builderA Hatch build hook plugin that automates the…
permissive · top 15,000 on PyPI
pyromaPyroma rates how well a Python project complies…
permissive · top 15,000 on PyPI
flit-coreFlit-core provides the build backend for…
permissive · top 1,000 on PyPI
jupyter-builderProvides CLI and Python tools to build,…
permissive · top 1,000 on PyPI
flitFlit is a Python packaging tool that simplifies…
permissive · top 5,000 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
charmcraftlocalPacks Juju charms with local Python package…
unclear · top 15,000 on PyPI
setuptools-gitA setuptools plugin that automatically includes…
permissive · top 15,000 on PyPI
setuptools-scmAutomatically extracts and manages Python…
permissive · top 1,000 on PyPI