microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 294 forks source link

Kernel detection by jupyter not working with ms-python extension #16208

Closed Xharos closed 6 days ago

Xharos commented 2 weeks ago

Environment data

Expected behaviour

Select the python kernel from the jupyter select kernel button.

Actual behaviour

I got an empty list : Image

Steps to reproduce:

I am now able to open the ipynb file created earlier inside my browser and select the venv to run it : Image

But i cannot select the venv in vs-code. It shows an empty list when clicking select kernel (see Actual behaviour).

Bug found, if from this step i disable/uninstall ms-python and restart vs-code, the venv kernel appears automatically : Image I'm able to launch the cell inside vs-code without any error. But I want the ms-python extension for the code documentation.

What can i do to have both extensions running without any bug ? I've already look the tutorial on ms-python README file, section run with jupyter notebook. But it's not working for me.

Thanks in advance

DonJayamanne commented 2 weeks ago

Thank you for filling this issue, former I’m failing to infants the problem

Bug found, if from this step i disable/uninstall ms-python and restart vs-code, the venv kernel appears automatically 👍🏾

From what I gather this works now Or does it still not work?

Also please update your version of vscode, Jupyter and python extensions (you do not have the latest versions installed)

Xharos commented 2 weeks ago

Thanks for this quick response.

It is indeed working (i can execute code in notebook inside vs-code) when ms-python is not installed. But i would like it to be working with ms-python (to support documentation, completion, etc)

I doesn't know that i am not up to date. I've performed a system upgrade (through pacman) because i have installed vs-code from manjaro package manager. Same for the extensions (installed from the extensions tab) that seems up-to-date.

It seems in fact that pacman -S code is not the latest version (as shown in this community package https://aur.archlinux.org/packages/visual-studio-code-bin). I will try to install it to see if i can get newest version of the extensions.

DonJayamanne commented 2 weeks ago

VS Code version: 1.93.1

You mentioned you have 1.93

It seems in fact that pacman -S code is not the latest version (as shown in this community package https://aur.archlinux.org/packages/visual-studio-code-bin).

The above link shows that 1.95 is the latest version

Jupyter Extension version : v2024.8.1

The latest version is 2024.10.0

Xharos commented 2 weeks ago

I will try to install vs code from another source then. I cannot upgrade higher than 1.93.1 with the current package that i'm using.

I will try the aur package and see if i'm able to get more recent extension version.

DonJayamanne commented 2 weeks ago

Let me know how that goes

vs-code-engineering[bot] commented 6 days ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!