jupyter-ruff
A JupyterLab and Jupyter Notebook extension for formatting code with Ruff.
Requirements
One of the following:
- JupyterLab >= 4.0.0
- Jupyter Notebook >= 7.0.0
Usage
An interactive environment to try out this extension is available on Binder.
Alternatively, learn how to use this extension by reading the Demo.ipynb notebook.
If you are familiar with nb_black, this extension can provide a similar mode of operation where cells are formatted as they are executed.
However, you also have the option to just format cells using menus, keyboard shortcuts, the command palette, or format on save.
You may also consult the Ruff documentation to learn about the underlying formatting rules.
Install
To install the extension, execute one of the following:
pip install jupyter-ruff
mamba install jupyter-ruff -c conda-forge
To remove the extension, execute one of the following:
pip uninstall jupyter-ruff
mamba remove jupyter-ruff
Alternatively, you can also use the builtin JupyterLab extension manager to install the extension.
Contributing
All good-faith contributions are welcome! Please read CONTRIBUTING for information on how to set up a development environment and perform common development tasks.
Metadata
Release files for jupyter-ruff 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jupyter_ruff-0.3.1.tar.gz | 5.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jupyter_ruff-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 MB
Release files / jupyter_ruff-0.3.1.tar.gz
| Download URL | jupyter_ruff-0.3.1.tar.gz |
|---|---|
| Size | 5.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a348fe622c701a431c404497c420f8881f7092fbc44b5b5ced31292c49c6cd8
|
|
BLAKE2b-256 checksum How to use checksums |
ef9e8e71698b5af9670a545593e623f89f695f5a41c7880aa459324720efb2cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / jupyter_ruff-0.3.1-py3-none-any.whl
| Download URL | jupyter_ruff-0.3.1-py3-none-any.whl |
|---|---|
| Size | 5.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3380298e8012eb1f93b62b53e89f8c45f7ecee1a2dc133c415da261fc60e1f8f
|
|
BLAKE2b-256 checksum How to use checksums |
44ebbc5322c8fe3f519a9ddfafe80e40c38706c3639f7124885d02d9d23bf54a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|