Skip to main content

jupyterblack

continuous-integration Python 3.8+ Checked with mypy pylint Score Code style: black

pypiv

Licence CodeSize

Format code cells in Jupyter Notebook and JupyterLab using Black.

It's as simple as calling jblack

jblack notebook.ipynb

Install jupyterblack from the command line with pip

pip install jupyterblack

Usage

# Format one Jupyter file:
jblack notebook.ipynb

# Format multiple Jupyter files:
jblack notebook_1.ipynb notebook_2.ipynb [...]

# Format a directory:
jblack python/

# Format one Jupyter file with a line length of 70:
jblack -l 70 notebook.ipynb

# Show help:
jblack -h

Options

positional arguments:
  targets

optional arguments:
  -h, --help            show this help message and exit
  --check
  --pyi
  -l LINE_LENGTH, --line-length LINE_LENGTH
  -s, --skip-string-normalization
  -w WORKERS, --workers WORKERS
                        number of worker processes
  --show-invalid-code
  -t {py27,py33,py34,py35,py36,py37,py38} [{py27,py33,py34,py35,py36,py37,py38} ...], --target-version {py27,py33,py34,py35,py36,py37,py38} [{py27,py33,py34,py35,py36,py37,py38} ...]

Contribute

Support

If you are having issues or would like to propose a new feature, please use the issues tracker.

License

The project is licensed under the MIT license.

Metadata

Release files for jupyterblack 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterblack 0.4.1
File Size Uploaded Provenance Actions
jupyterblack-0.4.1.tar.gz 9.3 kB Without provenance Details for jupyterblack-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyterblack 0.4.1
File Interpreter ABI Platform Actions
jupyterblack-0.4.1-py3-none-any.whl Python 3 none any Details for jupyterblack-0.4.1-py3-none-any.whl

Total release size: 19.5 kB

Release files / jupyterblack-0.4.1.tar.gz

Download URL jupyterblack-0.4.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e7e001b6347cb0aa502be124e306288771bcce8f2846cbdc17c8ee17a479d4f0
BLAKE2b-256 checksum
How to use checksums
e4b64ae65119caae0e943d2b75af1d70e784c2a5f385dc35f27f86929f7e52c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / jupyterblack-0.4.1-py3-none-any.whl

Download URL jupyterblack-0.4.1-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be99e93e5bf79ce7ec080eccba91efec1e3fd43b99d27382cd3e0ce39b51b226
BLAKE2b-256 checksum
How to use checksums
3512c94562ae102a22ad833cdefc981c43baf6f98b0b70183958bbb1a786c6b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Security for jupyterblack 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page