jupyter-black
A simple extension for Jupyter Notebook and Jupyter Lab to beautify Python code automatically using Black. Fork of dnanhkhoa/nb_black.
Decision gist · record as of 2026-08-14
Yes, if you use Jupyter Notebook or JupyterLab and want automatic Black formatting. The extension has low install friction, no security vulnerabilities, and a permissive MIT license. However, note that the project is dormant (last release 2024-08-30); if you need active maintenance or encounter compatibility issues with newer versions, you may need to pin versions or consider alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Jupyter Notebook or JupyterLab to be installed and running; the extension only formats cells after they are executed.
- Low install friction with a single runtime dependency on black.
- The project is dormant (last release 2024-08-30, 714 days ago) but the repository remains active and unarchived.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both personal and commercial projects.
last release 2024-08-30 (714 days) · last repo commit 2024-08-31 · 59 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 137,362 downloads/mo, #11,369 on PyPI
Alternatives
Verify before relying
pip install jupyter-black
# In a notebook cell:
import jupyter_black
jupyter_black.load()- Whether the extension works with all current versions of Jupyter Notebook and JupyterLab, given the dormant maintenance status.
- Compatibility with the latest versions of black beyond what the fact sheet documents.
- Whether the extension requires specific Python versions beyond the classifiers listed (3.8, 3.9, 3.10, 3.11).
What it is and what it does
jupyter-black is an extension that integrates the Black code formatter into your notebook workflow. Once loaded, it automatically formats any syntactically correct Python code cell with Black immediately after you run it, without requiring manual formatting steps. The extension reads Black configuration from pyproject.toml if available and allows you to override settings like line length and target Python version through its load function.
It depends only on black as a runtime dependency and works with both Jupyter Notebook and JupyterLab (defaulting to lab mode). The extension can be loaded either through Python code with configuration options or via the %load_ext magic command, though the magic command defaults to lab=True and may not work in standalone notebook installations.
Use it for
- Automatically format code cells to Black style without manual intervention after each cell execution.
- Enforce consistent code formatting across a notebook-based project by loading the extension at startup.
- Override Black defaults like line length and target Python version on a per-notebook basis using the configurable load function.
- Migrate from nb_black while gaining access to newer Black features and improved responsiveness.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Jupyter Notebook or JupyterLab and want automatic Black formatting.
The extension has low install friction, no security vulnerabilities, and a permissive MIT license. However, note that the project is dormant (last release 2024-08-30); if you need active maintenance or encounter compatibility issues with newer versions, you may need to pin versions or consider alternatives.
Install
jupyter-black on PyPI
Before you install
Low install friction with a single runtime dependency on black. The project is dormant (last release 2024-08-30, 714 days ago) but the repository remains active and unarchived. No known vulnerabilities.
Requires Jupyter Notebook or JupyterLab to be installed and running; the extension only formats cells after they are executed.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both personal and commercial projects.
Quickstart
pip install jupyter-black
# In a notebook cell:
import jupyter_black
jupyter_black.load()
Verify before relying
- Whether the extension works with all current versions of Jupyter Notebook and JupyterLab, given the dormant maintenance status.
- Compatibility with the latest versions of black beyond what the fact sheet documents.
- Whether the extension requires specific Python versions beyond the classifiers listed (3.8, 3.9, 3.10, 3.11).
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageblack |
| Maintenance | Dormant 714 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 137,362 / month, #11,369 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: jupyter_black-0.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “jupyter code formatter”
- jupyter-blackA Jupyter Notebook and JupyterLab extension that automatically…
- jupyterlab-code-formatterA JupyterLab plugin that integrates code formatters directly into the…
- nbqaRuns standard Python linters and formatters (ruff, black, isort,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also jupyterlab-code-formatter · jupyterlab-execute-time · jupyter_bokeh · jupyterlab_notebook_awareness · jupyterlab-commands-toolkit · jupyterlab · jupyter-server-documents · jupysql-plugin · jupyter · pytest-black