# 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 | |
|---|---|---|---|
| nb_black-1.0.7.tar.gz | 4.8 kB | Details |
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
|