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.9.tar.gz (3.5 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.9-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyterblack-0.2.9.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4

File hashes

Hashes for jupyterblack-0.2.9.tar.gz
Algorithm Hash digest
SHA256 6239a25df0662667c38b9580b63ec1fff08faf3a4b6aa909c1907a36bf194171
MD5 b7598b98f7d838c10d65d34a6e7e2f9a
BLAKE2b-256 2f7097473c90c5be0cfb62ad73de80bfc9a41490b172f759e5bbcf43cb4746cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jupyterblack-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4

File hashes

Hashes for jupyterblack-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f78f2324bb4038898f788463dc6e15a0a2caf1dc972158b2516f45f12c4b2ebc
MD5 2ae708cb7f715841fbbc87e5b6d5e267
BLAKE2b-256 d7c6845e170981d82e5aa57cc3457532de9772de40856d3eff1a7f650e803e01

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