Skip to main content

Format code cells in Jupyter Notebook and JupyterLab using black.

Project description

jupyterblack

Licence

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


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.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

jupyterblack-0.2.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page