Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Format code cells in Jupyter Notebook and JupyterLab using black.

Project description


pypiv pyv Licence CodeSize

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


# 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


Bug reports and feature requests

Please use the issues tracker to report bugs or submit feature requests.


Pull requests are very welcome.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jupyterblack, version 0.2.9
Filename, size File type Python version Upload date Hashes
Filename, size jupyterblack-0.2.9-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jupyterblack-0.2.9.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page