Skip to main content

A plugin to format your python code with Black in Thonny IDE. (For Thonny release >= 4.x)

Project description

Thonny black formater plugin

Thonny plugin for source formatting with black (Thonny >= 4.x)

This plugin enables formatting with black tool inside Thonny python editor.

History and rationale

Originally there was this plugin available:

From Thonny release 4.0.0 the plugin stopped working and has been found in an abandoned project state (dead github project home page link) but still installable from PyPI repository.

This is an adptation built from the sources installes and modified in order to make it work for Thonny release 4.0.0 and - hopefully - subsequent.


All credits go to the author "Franccisco" of the original plugin.

All information available to me related to the original plugin is in the following two links.

Github repo: [dead link] Docs:


Credits for this part of the readme go to the original author Franccisco

This can be easily installed via Thonny.

Go to Tools -> Manage plug-ins..., type thonny-black-format and click on Find package from PyPI. Install the plugin and restart Thonny.

Alternatively, you can install via pip with ```pip install --user thonny-black-format````


Credits for this part of the readme go to the original author Franccisco

There are two ways to run the plugin:

  1. Go to Tools -> Format with Black
  2. Press Ctrl+Alt+c

All changes will be automatically saved.

If you prefer, you can undo them.


Contributions are welcome! Feel free to sumbit an issue and/or a pull request.

Project details

Download files

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

Source Distribution

thonny-black-formatter-0.0.4.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

thonny_black_formatter-0.0.4-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

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