A spell checker for JupyterLab.
Project description
jupyterlab-spellchecker
A JupyterLab extension highlighting misspelled words in markdown cells within notebooks and in the text files.
The JupyterLab extension is based on the spellchecker Jupyter Notebook extension and relies on Typo.js for the actual spell checking. Spellchecker suggestions are available from the context menu.
The extension provides (Hunspell) SCOWL dictionaries for:
- American, British, Canadian, and Australian English
- French,
- German (Germany, Austria, Switzerland)
- Portuguese,
- Spanish.
JupyterLab Version
The extension has been tested up to JupyterLab version 3.0.
Installation
For JupyterLab 3.x:
pip install jupyterlab-spellchecker
For JupyterLab 2.x:
jupyter labextension install @ijmbarr/jupyterlab_spellchecker
Contributing
Development install
Note: You will need NodeJS to build the extension package.
The jlpm
command is JupyterLab's pinned version of
yarn that is installed with JupyterLab. You may use
yarn
or npm
in lieu of jlpm
below.
# Clone the repo to your local environment
# Change directory to the jupyterlab_spellchecker directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm run build
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab
Before commit
Make sure that eslint passes:
jlpm run eslint:check
If there are any issues it might be possible to autofix them with:
jlpm run eslint
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
File details
Details for the file jupyterlab-spellchecker-0.5.1.tar.gz
.
File metadata
- Download URL: jupyterlab-spellchecker-0.5.1.tar.gz
- Upload date:
- Size: 10.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe2828cfd226e4aa3948d8f0cb1ecc7939d4ef1ac67ac26cfdee08825a92126 |
|
MD5 | fee74cb74fd801219aee03be353ad48f |
|
BLAKE2b-256 | 912f4f10f99c765ac7d84d0b3fc4a9d8de1ab179d805ea16e144d4ea0177dfa2 |
File details
Details for the file jupyterlab_spellchecker-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: jupyterlab_spellchecker-0.5.1-py3-none-any.whl
- Upload date:
- Size: 10.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 762a53de2ea9424641f3685016cef5911014ad417600e34c28bb49893d9d90ef |
|
MD5 | 784a2168b010c74767cc8c5bce53ca1d |
|
BLAKE2b-256 | 6cd7b29c11ab88794291bd4e78a219d72887cb55a3cba586af9a7b37e355be0a |