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 notebook.ipynb
Install jupyterblack from the command line with pip
$ pip install jupyterblack
Usage
# Format one Jupyter file:
$ jblack notebook.ipynb
# Format multiple Jupyter files:
$ jblack notebook_1.ipynb notebook_2.ipynb [...]
# Format a directory:
$ jblack python/
# Format one Jupyter file with a line length of 70:
$ jblack -l 70 notebook.ipynb
# Show help:
$ jblack -h
Contribute
Support
If you are having issues or would like to propose a new feature, please use the issues tracker.
License
The project is licensed under the MIT license.
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.3.1.tar.gz
(8.3 kB
view hashes)