Skip to main content

npspellcheck

spell checking jupyter notebooks

Writing correctly should be a priority, even for programmers and scientists.

But this is not easy in jupyter notebooks.

In english, a good solution is to make use of the spellchecker notebook extension, which highlights incorrect text:

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextension enable spellchecker/main

However, this extension is currently not able to suggest corrections, and is only available for English.

Since I write blog posts based on jupyter notebooks in French, I came up with a small script for spell checking.

Installation:

pip install nbspellcheck

Example of use:

nbspellcheck.py my_jupyter_notebook.ipynb -l fr

A big thank you to the developers of

that are doing all the heavy lifting.

I made this real fast, and the user interface can be improved. Please don't hesitate to send a PR.

Metadata

Release files for nbspellcheck 0.0.5

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

Source distribution (sdist)

Source distribution for nbspellcheck 0.0.5
File Size Uploaded Provenance Actions
nbspellcheck-0.0.5.tar.gz 3.7 kB Without provenance Details for nbspellcheck-0.0.5.tar.gz

Release files / nbspellcheck-0.0.5.tar.gz

Download URL nbspellcheck-0.0.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7521a47ae61119c934f1b4ae238f8ba8435d7b8b4c9596e55880693bc050c741
BLAKE2b-256 checksum
How to use checksums
5400e93936908708a9f6d8f9f0f26a770c8b55958999d875d5e0c468e1ce0c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.2

Security for nbspellcheck 0.0.5

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