question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spacy is not workin in VS code jupyter notebook

See original GitHub issue

Issue Type: Bug

I created a conda environment and learned NLP. I installed Spacy successfully.

Now, I am importing it in my notebook but it gives me an error ‘ModuleNotFoundError: No module named ‘spacy’’. I tried all the possible ways to solve it but did not succeed. I was using ‘Spacy in my file name’, so I read somewhere and deleted my file then it started working again. A day later I tried again and it did not work.So I created a .py file and it worked.

This is only for Spacy, I have to run the whole file every time I change something. it is not working on an ipynb file.

VS Code version: Code 1.56.2 (054a9295330880ed74ceaedda236253b4f39a335, 2021-05-12T17:13:13.157Z) OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel® Core™ i5-6200U CPU @ 2.30GHz (4 x 2400)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.43GB (9.32GB free)
Process Argv –crash-reporter-id 14d55822-e4f3-403f-912f-de60c0777865
Screen Reader no
VM 0%
Extensions (14)
Extension Author (truncated) Version
fluent-icons mig 0.0.11
theme-monokai-pro-vscode mon 1.1.19
python ms- 2021.5.842923320
vscode-pylance ms- 2021.5.4
jupyter ms- 2021.6.832593372
vscode-thunder-client ran 1.3.0
java red 0.79.2
synthwave-vscode Rob 0.1.8
vscodeintellicode Vis 1.2.14
vscode-java-debug vsc 0.34.0
vscode-java-dependency vsc 0.18.4
vscode-java-pack vsc 0.15.0
vscode-java-test vsc 0.30.0
vscode-maven vsc 0.31.0

(4 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30291414
vspre833:30267464
pythonptprofiler:30281270
vshan820:30294714
vscorecescf:30290706
pythondataviewer:30285071
vscus158cf:30286554
vscgsv2:30307504
vscorehov:30302759
bridgeflightcf:30302070
vscod805:30301674

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ashish261991commented, Jun 2, 2021

Gotcha !! So now it is working fine, I never noticed and I did not know that we have to check that environment. My bad, I am new to VS code. I was just changing the environment by pressing Ctrl+Ship+p. So now I clicked on in the top right corner and then selected the environment. Thanks for your help and time

0reactions
claudiaregiocommented, Jun 2, 2021

No worries! Glad we were able to get you working 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter notebook can't render displacy · Issue #1777 - GitHub
Issue Type: Bug DisplaCy (from the spaCy module) supports rendering in Jupyter notebooks, but the notebook features in VS Code's Python ...
Read more >
install spacy not working in jupyter notebook - Stack Overflow
Go to Anaconda Navigator -> at the environment, go to the base(root)-> open terminal · type this command: conda install -c conda-forge spacy....
Read more >
Unable to load 'en' from spacy in jupyter notebook
I run the following lines of code in a jupyter notebook: import spacy nlp = spacy.load('en'). And get following error: Warning: no model...
Read more >
Install spaCy · spaCy Usage Documentation
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more....
Read more >
Spacy install module workaround for Jupyter Notebook ...
Quick fixes for installing Spacy and the Language Modules for Jupyter / Python# Jupyter #python #spacypip install -U spacypip install ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found