Vscode-jupyter: Failed to find a kernelspec to use for ipykernel launch

Created on 12 Sep 2020  Â·  8Comments  Â·  Source: microsoft/vscode-jupyter

Environment data

  • VS Code version: 1.50.0-insider (user setup)
  • Extension version (available under the Extensions sidebar):2020.9.106814-dev
  • OS and version: Windows_NT x64 10.0.18362
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.5 32-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
    Jupyter 1.1.5,

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server [Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance) from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

Opening Jupyter files and be able to run code

Actual behaviour

It shows. Failed to find a kernelspec to use for ipykernel launch
Screenshot (3)

Steps to reproduce:

I open Jupyter in VSCode insider then this shows up "Failed to find a kernelspec to use for ipykernel launch"

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

bug

Most helpful comment

The issue persists on v2020.9.106814-dev of the extension on Daily build.

System data:
Version: 1.50.0-insider (user setup)
Commit: 403a6895f401c397933ec5c4f7d89432a33509b6
Date: 2020-09-18T05:31:09.978Z
Electron: 9.3.0
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041
WSL2 Ubuntu 18.04
Python: Python 3.6.9
Output of jupyter kernelspec list:

Available kernels:
  julia-1.5    /home/raghav/.local/share/jupyter/kernels/julia-1.5
  python3      /home/raghav/.local/share/jupyter/kernels/python3

Any hotfix available?

All 8 comments

Same issue for me. My environments are linked. The bug for me is a bit more specific.

Python 3 '/opt...py38/bin/python -> works
When I switch to "Python 3.8.5 64bit (py38:conda) /opt...py38/bin/python -> failed to find kernel spec to use for ipykernel launch

Screen Shot 2020-09-12 at 11 11 54 AM

Hi all, this is a bug that we have fixed in https://github.com/microsoft/vscode-python/issues/13804, and it will be available in the next stable release of the extension, or the next insiders build if you are on VS Code insiders. I'm leaving this issue open so that other users encountering the same bug can find it.

Just reloaded and updated viscose + insider app, same issue persists.

The issue persists on v2020.9.106814-dev of the extension on Daily build.

System data:
Version: 1.50.0-insider (user setup)
Commit: 403a6895f401c397933ec5c4f7d89432a33509b6
Date: 2020-09-18T05:31:09.978Z
Electron: 9.3.0
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041
WSL2 Ubuntu 18.04
Python: Python 3.6.9
Output of jupyter kernelspec list:

Available kernels:
  julia-1.5    /home/raghav/.local/share/jupyter/kernels/julia-1.5
  python3      /home/raghav/.local/share/jupyter/kernels/python3

Any hotfix available?

I have the same problem on MacOS.
It seems to work after pip install --upgrade --force-reinstall, ipython kernel install and reinstallation of the VSC python extension.

As of v2020.9.111407 both the preview and the standard notebook editor work out of the box. Thank you for the support!

Works for me as well

I'm closing this issue for now. If the issue comes up again we can open this issue or please feel free to create a new one.

Was this page helpful?
0 / 5 - 0 ratings