Skip to main content

Format code cells in Jupyter Notebook and JupyterLab using black.

Project description

jupyterblack

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

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.7.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyterblack-0.2.7-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file jupyterblack-0.2.7.tar.gz.

File metadata

  • Download URL: jupyterblack-0.2.7.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for jupyterblack-0.2.7.tar.gz
Algorithm Hash digest
SHA256 3fb00d0a21f75cccb0ae873afe5409da18936ff7b1cb40db78a00e5d30ec6fee
MD5 cd7fc1a1fc0331a38a9158e8f014d465
BLAKE2b-256 0b2dff803288aaec9b2c3e438824a1979bdbbeb4477c5b0908d33f1ec76bcae2

See more details on using hashes here.

File details

Details for the file jupyterblack-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: jupyterblack-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for jupyterblack-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 44f167812dfd6a72eeecd10624cf240f83529d6f3bcb9b4d15b2d0ea401ff9c2
MD5 4dcb692ef888f426766b9085b046f280
BLAKE2b-256 57281c40b305df572659e45767d966eabecd09d0bce62aecbaa26331950fb447

See more details on using hashes here.

Supported by

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