vscode-jupyter: Jupyter does not detect python extension

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

When trying to run code in an interactive window, the only thing I see in the window is “Select a kernel to run cells”. By pressing Select a kernel a window pops up, and if I click the first option “Python environments…” I get a dialog “The Python Extension is required to perform that task. Click Yes to open Python Extension installation page”. But when I select “Yes” in the dialog it takes me to the python extension page where I see that it is installed.

Looking in the Jupyter output I see the following:

Visual Studio Code (1.80.0, undefined, desktop)
Jupyter Extension Version: 2023.6.1101941928.
Python Extension not installed.
Platform: win32 (x64).
Workspace folder c:\Code, Home = c:\Users\Anton Bogun
18:52:41.566 [info] User belongs to experiment group 'FastKernelPicker'
18:52:41.566 [info] User belongs to experiment group 'NewRemoteUriStorage'
18:52:41.566 [info] User belongs to experiment group 'PasswordManager'
18:52:41.824 [info] Start refreshing Kernel Picker (1690991561824)
18:52:41.835 [info] Using Pylance
18:52:41.876 [info] End refreshing Kernel Picker (1690991561824)
18:52:51.772 [info] No controller selected for Interactive Window initilization
18:52:51.831 [info] Process Execution: python "c:\Users\<username>\.vscode\extensions\ms-toolsai.jupyter-2023.6.1101941928-win32-x64\pythonFiles\normalizeSelection.py"

and every time I try to run code in the interactive window using the “Jupyter: Run Selection/Line in Interactive Window” command, I see the last two info lines get printed again (with new timestamps)

VS Code Version

Version: 1.80.0 (system setup) Commit: 660393deaaa6d1996740ff4880f1bad43768c814 Date: 2023-07-04T15:06:02.407Z Electron: 22.3.14 ElectronBuildId: 21893604 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.19045

Jupyter Extension Version

v2023.6.1101941928

Jupyter logs

See "What happened?" section

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

v2023.12.0

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 25 (11 by maintainers)

Most upvoted comments

Seems to be fixed, I was able to select a kernel and it did not say that python extension wasn’t installed

Python extension detects fine on VSCode 1.81.