Skip to main content

Build Status GitHub Actions Status: CI DOI

blackbook

Black for Jupyter notebooks.

How?

$ pip install blackbook
$ blackbook .
2019-01-28 17:15:10.857 | INFO     | blackbook.__main__:main:31 - All done! 📖
2019-01-28 17:15:10.857 | INFO     | blackbook.__main__:main:33 - 1 notebooks reformatted. 1 left unchanged.

You can also run blackbook over a single notebook

$ blackbook unformatted.ipynb
2019-01-28 17:15:12.663 | INFO     | blackbook.__main__:main:31 - All done! 📖
2019-01-28 17:15:12.663 | INFO     | blackbook.__main__:main:33 - 1 notebooks reformatted. 0 left unchanged.

Why?

From black:

Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.

There are two black implementations for Jupyter notebooks:

These both work in a given notebook session, blackbook will search a directory tree and reformat the notebooks in an uncompromising way.

Metadata

Release files for blackbook 0.0.6

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

Source distribution (sdist)

Source distribution for blackbook 0.0.6
File Size Uploaded Provenance
blackbook-0.0.6.tar.gz 3.0 kB Without provenance Details

Release files / blackbook-0.0.6.tar.gz

Download URL blackbook-0.0.6.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ab6370333e0b1f3791f90b4d275944b839082a6e4d6ec7bfd66bce234a8eb1df
BLAKE2b-256 checksum
How to use checksums
af8ea897f02861da711650bb2c8983206185293561d5942ba78f7b858e4bbac9
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/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.14.0 CPython/3.7.6

Security for blackbook 0.0.6

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