--- id: jupyterlab-code-formatter version: "3.1.0" 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) license_treatment: permissive maintenance: active --- # jupyterlab-code-formatter — A JupyterLab plugin to facilitate invocation of code formatters. License: permissive · Maintenance: active · Downloads: 126.2K/mo ## 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 above — 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 pip install jupyterlab-code-formatter uv add jupyterlab-code-formatter 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_current - Install friction: low - Maintenance: active - Downloads: 126.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags jupyterlab code formatter plugin, format code in jupyter notebooks, code formatting jupyterlab extension, automatic code formatter jupyter, notebook code beautifier, jupyter formatting tools, jupyterlab extension formatting, jupyter-extension, code-formatting, developer-tools [View on SkillFed](https://skillfed.io/packages/jupyterlab-code-formatter) · [View on PyPI](https://pypi.org/project/jupyterlab-code-formatter/)