Skip to main content

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.

  1. Install the package
pip install jupyterlab-code-formatter
  1. 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
  1. Restart JupyterLab

This plugin includes a server plugin, restart JupyterLab if you have followed the above steps while it's running.

  1. Configure plugin

To configure which/how formatters are invoked, see configuration.


Troubleshoot

This extension is composed of a Python package named jupyterlab_code_formatter 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 .

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_code_formatter-3.1.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyterlab_code_formatter-3.1.0-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_code_formatter-3.1.0.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_code_formatter-3.1.0.tar.gz
Algorithm Hash digest
SHA256 6d28a0f7e1a7013f35e1c7f47c09e21f56a2947e5760a5abbb792696fdb27023
MD5 ebf8c452683a6b71e178438ef5b65f0f
BLAKE2b-256 8c518c62c99005489d00aaf755da5095df1ec74531fb1243f00149807a83c55f

See more details on using hashes here.

File details

Details for the file jupyterlab_code_formatter-3.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_code_formatter-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1d9a8e3b31e13493281636ccfc18d69debd476487a26d3bf6a03debb80fdfb8
MD5 6e2440ae91667be32326e16d84c372de
BLAKE2b-256 a1c0b57940ad6f217be80bb66f9d942d33d9349ae75cd1b0fe1118bc40cdae25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page