# nb_black
[]() []()
A simple extension for Jupyter Notebook and Jupyter Lab to beautify Python code automatically using Black.
Please note that since the Black package only supports Python 3.6+, so YAPF package will be used for the lower versions. If you edit the code while running the cell, the formatting is not submitted to the Jupyter notebook and instead silently suppressed, so you have to stick with the edited, but unformatted code.
## Installation
You can install this package using [pip](http://www.pip-installer.org):
` $ [sudo] pip install nb_black `
## Usage
For Jupyter Notebook:
` %load_ext nb_black `
For Jupyter Lab:
` %load_ext lab_black `
Just put this code into the first cell in your Notebook, and that’s all. :)
Metadata
Release files for nb-black 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nb_black-1.0.7.tar.gz | 4.8 kB | Without provenance | Details for nb_black-1.0.7.tar.gz |
Release files / nb_black-1.0.7.tar.gz
| Download URL | nb_black-1.0.7.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ca52e3a46675f6a0a6d79ac73a1f8f951bef60f919eced56173e76ab1b6d62b
|
|
BLAKE2b-256 checksum How to use checksums |
a986195e7b1bcafe86c2f5deb3efcbdc6ab35f7269fc4b0095b94321de2215a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Security for nb-black 1.0.7
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.