Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spell check for Jupyter Notebooks #420

Closed
apptimise opened this issue Jan 31, 2020 · 14 comments
Closed

Spell check for Jupyter Notebooks #420

apptimise opened this issue Jan 31, 2020 · 14 comments

Comments

@apptimise
Copy link

I use Jupyter Notebook inside VSCode heavily. Wondering if there is a way to enable the spell checker for the .ipynb files?

@Jason3S
Copy link
Collaborator

Jason3S commented Feb 3, 2020

There are a couple of way to do this:

F1 Enable Spell Checking Document Language

image

Due to a recent bug in VS Code, you might need to restart VS Code.

If you go to VS Code settings, and search for cspell.enabledLanguageIds, you can add the language ID.

image

@apptimise
Copy link
Author

thanks, but what language should I add? It works with Python (i.e. the .py files), but not with the Jupyter Notebooks. Tried the first approach as well, got an error "Reduce of empty array with no initial value", and restarting the VSCode didn't help.

@Jason3S
Copy link
Collaborator

Jason3S commented Feb 4, 2020

image

jupyter - all lowercase.

@Jason3S
Copy link
Collaborator

Jason3S commented Feb 4, 2020

Do you have some good examples I can try? The ones I found do not seem to load.
Plus, what plug-in are you using to edit / display them?

@christianll9
Copy link

I use the Microsoft Python extension on Remote-WSL and the spell checker also seems not to work (even after restart of VSCode).

SharedScreenshot
SharedScreenshot

I think the spell checker only works with the raw text data and not in the extension view.

@raghavendra-musubi
Copy link

We need a spell checker for Jupyter Notebooks in VSCode.

@mikessut
Copy link

I've tried this solution, but still can't get spell check in ipynb.

@YiquanGu
Copy link

YiquanGu commented May 3, 2021

Just wondering whether there's been workable solution within vscode-spell-checker or a different extension emerged since then?

@Jason3S
Copy link
Collaborator

Jason3S commented Sep 1, 2021

Update

I took a look at this a while ago. The issue is that the Jupyter Notebooks extension controls what is displayed. The last time I checked, it was not possible to interact with the Notebook from another extension. That might have changed. When I get the chance, I'll take another look.

@Jason3S
Copy link
Collaborator

Jason3S commented Sep 2, 2021

Good news!!!

With the new Notebook UI in VS Code (The Coming of Age of Notebooks), it is now possible to run spell checking!.

image

Note: It must be in the New UI! See VS Code Issue #7021 on how to open a Notebook with the new UI.

Old UI:
image

@VeronicaCodes
Copy link

@Jason3S i can't seem to understand how to use it? It's so confusing. Could you give a tip, pleaase?

JN spellchecking in VS code would be an extremely useful feature

@Jason3S
Copy link
Collaborator

Jason3S commented Feb 4, 2022

@VeronicaCodes,

It should be working.
Do you see this at the bottom:
image

The spell part is important.

@Jason3S
Copy link
Collaborator

Jason3S commented Feb 4, 2022

This is what I have:
image

@VeronicaCodes,
I'm going to close this issue. It looks like it was left open by accident. Please open a new issue with some more details on what your are seeing.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants