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.

IntelliSense is not working in Jupyter Notebook editor

See original GitHub issue

Environment data

  • VS Code version: 1.52.1
  • Jupyter Extension version (available under the Extensions sidebar): v2020.12.414227025
  • Python Extension version (available under the Extensions sidebar): v2021.1.502429796
  • OS (Windows | Mac | Linux distro) and version: Windows 10 Pro 10.0.19041
  • Python and/or Anaconda version: Python 3.8.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): virtualenv
  • Jupyter server running: Local | Remote | N/A: Local

Expected behaviour

IntelliSense works in .py files image

Actual behaviour

But not working in Jupyter Notebook editor image

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

User belongs to experiment group 'jupyterTest'
Error 2021-01-26 21:44:36: Jupyter Kernel Spec not found for a local connection
> c:\Users\isenb\projects\comp_vision\opencv\Scripts\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> c:\Users\isenb\projects\comp_vision\opencv\Scripts\python.exe -c "import os;print(os.path.realpath("C:\\Users\\isenb\\AppData\\Roaming\\jupyter\\kernels"))"
> c:\Users\isenb\projects\comp_vision\opencv\Scripts\python.exe -c "import os;print(os.path.realpath("C:\\Users\\isenb\\AppData\\Roaming\\jupyter\\kernels"))"
> c:\Users\isenb\projects\comp_vision\opencv\Scripts\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\isenb\projects\comp_vision\opencv\Scripts\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Started kernel Python 3.8.0 32-bit ('opencv')
Error 2021-01-26 21:44:42: [Error: command 'python.analysis.restartLanguageServer' already exists
	at _.registerCommand (c:\Users\isenb\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:699:970)
	at Object.registerCommand (c:\Users\isenb\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:1020:634)
	at c.registerCommand (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:59:667016)
	at new r (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:59:52528)
	at Object.t.resolveInstance (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:269546)
	at c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:268512
	at Array.map (<anonymous>)
	at Object.t.resolveInstance (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:269316)
	at c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:268512
	at Object.t.resolve (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:268775)
	at c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:259351
	at e._get (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:259117)
	at e.getTagged (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:257920)
	at e.getNamed (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:44:258012)
	at a.get (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:59:938360)
	at w.createRefCountedServer (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:52:30816)
	at async Object.getLanguageServer (c:\Users\isenb\.vscode\extensions\ms-python.python-2021.1.502429796\out\client\extension.js:52:6600)
	at async Function.create (c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:290779)
	at async L.getLanguageServer (c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:263836)
	at async L.handleChanges (c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:265911)
	at async L.loadAllCells (c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\out\client\extension.js:49:272724)]
> c:\Users\isenb\projects\comp_vision\opencv\Scripts\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> c:\Users\isenb\projects\comp_vision\opencv\Scripts\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~\Anaconda3\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> ~\Anaconda3\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\Anaconda3\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py jupyter kernelspec --version
> ~\Anaconda3\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~\Anaconda3\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~\Anaconda3\python.exe c:\Users\isenb\.vscode\extensions\ms-toolsai.jupyter-2020.12.414227025\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
IanMatthewHuffcommented, Jan 27, 2021

We actually had a bug for this recently. We have the fix in, but it’s not been released yet. Should be in our next extension release. I’m going to close this issue as a duplicate of the other issue on the topic. https://github.com/microsoft/vscode-jupyter/issues/4218

1reaction
IanMatthewHuffcommented, Jan 28, 2021

If you still see an issue here after our next release (no date promises, but we usually release about every month) just ping back here and I’ll reactivate this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode Intellisense works when editing a python file but does ...
The Intellisense feature works fine when I'm editing a Python file (e.g. when I type 'imp' the editor recommends 'import'), but not when...
Read more >
How to Enable and Use Autocomplete in Jupyter Notebook
To use the code auto completion, you have to type the module, object, or class name and then hit the 'Tab' button from...
Read more >
Is Your Intellisense Working In Jupyter Notebook - C# Corner
This article will help you to make your intellisense back to working condition.
Read more >
Enable Intellisense In Jupyter Notebooks Inside VS Code
This video explains about how can you enable Auto Complete feature in Jupyter Notebook inside Visual Studio Code or say you want to...
Read more >
Enable Intellisense in Jupyter notebooks - Winsmarts.com
By default, Jupyter notebooks do not have intellisense. Bummer!. “Enable Intellisense in Jupyter notebooks” is published by Sahil Malik in Winsmarts.com.
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