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.2.tar.gz
(3.4 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.2.tar.gz.
File metadata
- Download URL: jupyterblack-0.2.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
317c4da94889f8cadc0cc2b35eca3d1cf856f7061098c70d87ecf9f5cc4b3023
|
|
| MD5 |
529085690ef963a6826db8e0847356ed
|
|
| BLAKE2b-256 |
d31eb3a836bce612b6e57dcea3b7db9c7ecade2d9f903d4c2c17c21a3172c904
|
File details
Details for the file jupyterblack-0.2.2-py3-none-any.whl.
File metadata
- Download URL: jupyterblack-0.2.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f875e3a48800375288b315c96a0798b7011f2cc6366d38d19b6dc033275e7bb1
|
|
| MD5 |
3576710dd708b3886de230421452d434
|
|
| BLAKE2b-256 |
57d4f2417cbae850859e58f22472097cc60997fec5bdd834206ace660390bd54
|