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
- nltk : python natural language toolkit
- pyspellchecker : python spell checker
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)
| File | Size | Uploaded | |
|---|---|---|---|
| nbspellcheck-0.0.5.tar.gz | 3.7 kB | Details |
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
|