jupyterlab-contrib
jupyterlab_code_formatter
Python

A JupyterLab plugin to facilitate invocation of code formatters.

Last updated Jun 7, 2026
908
Stars
69
Forks
32
Issues
0
Stars/day
Attention Score
64
Language breakdown
No language data available.
โ–ธ Files click to expand
README

Extension status GitHub Action Status Binder pypi-version

A JupyterLab plugin to facilitate invocation of code formatters.


Documentation: Hosted on ReadTheDocs


Demo


Quick Start

I recommend you going to the documentation site, but this should work too.

  • Install the package
pip install jupyterlab-code-formatter
  • Install some supported formatters (isort+black are default for Python)
# NOTE: Install black and isort,

JL code formatter is configured to invoke isort and black by default

pip install black isort
  • Restart JupyterLab
This plugin includes a server plugin, restart JupyterLab if you have followed the above steps while it's running.
  • Configure plugin
To configure which/how formatters are invoked, see configuration.

Troubleshoot

This extension is composed of a Python package named jupyterlabcodeformatter for the server extension and a NPM package named jupyterlab-code-formatter for the frontend extension.

If you are seeing the frontend extension, but it is not working, check that the server extension is enabled:

jupyter server extension list

If the server extension is installed and enabled, but you are not seeing the frontend extension, check the frontend extension is installed:

jupyter labextension list

Getting help

If you don't use Discord then feel free to open a GitHub issue, do note I am a bit slower in responding in GitHub.


Your Support

I could really use your support in giving me a star on GitHub, recommending features or fixing bugs.


Contributors

This extension was originally developed and maintained by @ryantam626. Massive thanks to the below list of people who made past contributions to the project!

License

This project is licensed under the terms of the MIT LICENSE .

ยฉ 2026 GitRepoTrend ยท jupyterlab-contrib/jupyterlab_code_formatter ยท Updated daily from GitHub