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

IntelliSense is not working in Jupyter Notebook editor #4505

Closed
ernurator opened this issue Jan 26, 2021 · 10 comments
Closed

IntelliSense is not working in Jupyter Notebook editor #4505

ernurator opened this issue Jan 26, 2021 · 10 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@ernurator
Copy link

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

@ernurator ernurator added the bug Issue identified by VS Code Team member as probable bug label Jan 26, 2021
@IanMatthewHuff
Copy link
Member

@ernurator Thanks for filing this. A quick question here. What language server are you using for the Python: Language server setting?

@ernurator
Copy link
Author

@IanMatthewHuff Microsoft Python Language Server version 0.5.59.0

@IanMatthewHuff
Copy link
Member

@ernurator Can you try moving that setting over to Pylance? Check to see if you get Intellisense after that change.

@ernurator
Copy link
Author

@IanMatthewHuff it partially worked.

image

image

Now it doesn't show description of methods

@IanMatthewHuff
Copy link
Member

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.
#4218

@ernurator
Copy link
Author

Okay, thanks!

@IanMatthewHuff
Copy link
Member

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.

@ernurator
Copy link
Author

@IanMatthewHuff problem still exists after new release
image
image

@IanMatthewHuff
Copy link
Member

@ernurator You may be thinking of a release of the Python extension? This fix is in the Jupyter extension (which used to be part of the Python extension) and we have not yet made our release. You can check our release page in the marketplace here:
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
We've had a bit longer gap in our usual release due to the holidays and some large UI changes coming in the next release.

@ernurator
Copy link
Author

@IanMatthewHuff okay, got it.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants