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.5.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for jupyterblack-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d599a847ba5f8c0109e533f7d3274d8322593fad5b7a42995c867528b255416e |
|
MD5 | 362704dae0caf3059be480381a137761 |
|
BLAKE2b-256 | 5225d4ec4f5f538f7523f7772577c52f0c147888a85d2813b05ebb928b832459 |