A JupyterLab plugin to facilitate invocation of code formatters.
Maintained. Last release 4 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install jupyterlab-code-formatter
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 for the server extension and a NPM package named for the frontend extension.