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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nbspellcheck-0.0.5.tar.gz.
File metadata
- Download URL: nbspellcheck-0.0.5.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7521a47ae61119c934f1b4ae238f8ba8435d7b8b4c9596e55880693bc050c741
|
|
| MD5 |
c0c35caf526a8b4bee0f5ebf455802e1
|
|
| BLAKE2b-256 |
5400e93936908708a9f6d8f9f0f26a770c8b55958999d875d5e0c468e1ce0c53
|