skillfed

jupyterlab-code-formatter

A JupyterLab plugin to facilitate invocation of code formatters.

jupyterlab-code-formatter v3.1.0 126.2K downloads/30d#11,788 on PyPI906
Permissive 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) Active released

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-formatter

uv

uv add jupyterlab-code-formatter

poetry

poetry add jupyterlab-code-formatter

Installing 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

Framework :: JupyterFramework :: Jupyter :: JupyterLabFramework :: Jupyter :: JupyterLab :: 4Framework :: Jupyter :: JupyterLab :: ExtensionsFramework :: Jupyter :: JupyterLab :: Extensions :: PrebuiltLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

jupyterlab code formatter pluginformat code in jupyter notebookscode formatting jupyterlab extensionautomatic code formatter jupyternotebook code beautifierjupyter formatting toolsjupyterlab extension formatting
jupyter-extensioncode-formattingdeveloper-tools

More Quality Assurance packages