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 lenth 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.1.2.tar.gz (3.4 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.1.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyterblack-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 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.1.2.tar.gz
Algorithm Hash digest
SHA256 0cfe4141168eb009251484c2f35a7831a72105a92eeda93f075bb16f42ba67f0
MD5 d165291317dfa76aaf65f3627e3f05a3
BLAKE2b-256 881c65666263d25e7623082a1f965bb2401af940a442a6230d0906dd6e9211f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jupyterblack-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3aaea7a98b066e9b2f6ec7f762b9a125413b775688277989f6c98349ddd2542e
MD5 58d73459c95c145fd5229c6a10355d83
BLAKE2b-256 13088656fff749e259cc761d871bf6bbbb372d6f7f06359ba72e272024e92a5c

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