Format code cells in Jupyter Notebook and JupyterLab using black.
Project description
jupyterblack
Format code cells in Jupyter Notebook and JupyterLab using black.
It's as simple as calling jblack
$ jblack my_notebook.ipynb
Install jupyterblack from the command line with pip
$ pip install jupyterblack
Usage
# Format to black's default line length of 88.
$ jblack notebook.ipynb
# Customize your own line length to 70.
$ jblack -l 70 notebook.ipynb
# Format three .ipynb files to default line length.
$ jblack notebook_1.ipynb notebook_2.ipynb notebook_3.ipynb
# Show help.
$ jblack -h
Contributing
Bug reports and feature requests
Please use the issues tracker to report bugs or submit feature requests.
Development
Pull requests are very welcome.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jupyterblack-0.2.8.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyterblack-0.2.8.tar.gz.
File metadata
- Download URL: jupyterblack-0.2.8.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fa37200097e86b27112c61db2ab6617c0d1e6155652ce426add4d68aafad409
|
|
| MD5 |
88bd23007906990adf249105780b4a66
|
|
| BLAKE2b-256 |
5db70e423adfb0e1576cd619ecfe4c623d52a850a5f09501ebea7e2ffd6fdb46
|
File details
Details for the file jupyterblack-0.2.8-py3-none-any.whl.
File metadata
- Download URL: jupyterblack-0.2.8-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23454b088752513a354cce5303b22ff0e063b0fdbd21f06724b43e17403a65bd
|
|
| MD5 |
fe3974ce7834c910d32c7321d03406bc
|
|
| BLAKE2b-256 |
6d01c89a9ff5c09fb8d82bee777ecd2bfa864afae5933c239e9e5eb6d8e022f6
|