Spell checker for jupyter notebooks
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nbspellcheck-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cee9079358d3c110409b144cfc7ef561cda1db99c15f08603bd469eb6922d4c8 |
|
MD5 | 4d1fb953790f80ee3f374c5f6c81dc5e |
|
BLAKE2b-256 | 991b71b531085f4fef9b65f08e324658e458bc3d5ea13ba2fc497099057fde39 |