jupyterlab-code-formatter
A JupyterLab plugin to facilitate invocation of code formatters.
What it is and what it does
This is a JupyterLab extension that brings code formatting capabilities directly into your notebook environment. It acts as a bridge between JupyterLab and external code formatters, letting you format code cells without leaving the notebook. The plugin consists of a server-side Python component and a frontend component that together add formatting controls to the JupyterLab interface.
Once installed and configured, you invoke formatters on demand through the UI rather than running them separately in a terminal. It's designed for developers who want to maintain code style consistency within their notebooks without manual formatting or context-switching. The plugin supports Python 3.10 through 3.14 and integrates with jupyter-server and packaging as its core dependencies.
Use it for:
- Format Python code cells in notebooks to match your project's style guide without leaving JupyterLab.
- Quickly clean up messy or auto-generated code in exploratory notebooks before sharing or committing.
- Enforce consistent code style across a team's collaborative notebooks through configured formatters.
- Integrate code formatting into a notebook-based data science or research workflow.
- Configure different formatters for different projects through the plugin's configuration system.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A JupyterLab plugin that integrates code formatters directly into the notebook interface, allowing you to format code cells with a single action.
Yes. The plugin is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real friction point for notebook users. The MIT license is permissive. Install it if you regularly work in JupyterLab and want in-notebook formatting without context-switching—just remember to restart JupyterLab after setup and install your preferred formatters separately.
Install
jupyterlab-code-formatter on PyPI
pip
pip install jupyterlab-code-formatteruv
uv add jupyterlab-code-formatterpoetry
poetry add jupyterlab-code-formatterInstalling jupyterlab-code-formatter
Before you install
Low friction install with a pure-Python wheel. Actively maintained with a recent release 8 days ago. Requires jupyter-server and packaging as runtime dependencies, both standard in Jupyter environments.
License in practice
MIT license (permissive). You can use, modify, and distribute this plugin freely with minimal restrictions, making it suitable for both personal and commercial projects.
Quickstart
pip install jupyterlab-code-formatter
# Install your preferred code formatters separately
# Restart JupyterLab
# Format controls now appear in the notebook interface
Requires JupyterLab to be restarted after installation for the plugin to become active.
Verify before relying
- Which specific code formatters are supported and how to configure them.
- Performance impact when formatting very large notebooks or code cells.
- Whether the plugin works with all JupyterLab 4 versions or only specific minor releases.
Package facts
| License | Copyright 2023 Ryan TAM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — jupyter-server, packaging |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 126,160/month — #11,788 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jupyterlab_code_formatter-3.1.0-py3-none-any.whl
Keywords: jupyter, jupyterlab, jupyterlab-extension
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
jupyter-blackA Jupyter Notebook and JupyterLab extension…
permissive · top 15,000 on PyPI
jupyterlab-commands-toolkitExposes JupyterLab commands to Python code and…
permissive · top 15,000 on PyPI
jupysql-pluginA JupyterLab 4 extension that integrates…
permissive · top 15,000 on PyPI
jupyter-archiveA JupyterLab extension that adds archive…
permissive · top 15,000 on PyPI
jupyterlab-chatA JupyterLab extension that adds a chat…
permissive · top 15,000 on PyPI
jupyterlabJupyterLab is an extensible web-based…
permissive · top 1,000 on PyPI
nbqaRuns standard Python linters and formatters…
permissive · top 15,000 on PyPI
jupyterlab-widgetsEnables Jupyter/IPython widgets to render and…
permissive · top 1,000 on PyPI
jupyter-server-documentsA JupyterLab extension that moves document…
permissive · top 15,000 on PyPI
jupyterlab-execute-timeA JupyterLab extension that displays the…
permissive · top 15,000 on PyPI