-
Notifications
You must be signed in to change notification settings - Fork 293
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
New Virtual environments not listed in Kernels until i reload VS Code #5319
Comments
This bug has made vscode notebooks unusable for me. I cannot select the appropriate virtualenv. |
Here's the feature request for Python: |
Depends on #7583
|
This should be fixed. |
As of June 2022, this issue is not fixed. Please re-open this issue and keep it open until a dependable, reliable fix has been implemented. To users encountering this issue, one high-probability method I've found solves this persistent issue is to:
Uninstalling extension, reloading VS Code, and re-installing those extensions is currently the only dependable way of solving the mystery of missing kernels/environments in VS Code Jupyter notebooks, which is a less than ideal solution. |
@cpoptic can you open a new issue? Creating a venv and refreshing the list of interpreters in the python extension works for me. Perhaps we need a 'force refresh' button for kernels too. But kernels update when we detect from the python extension that a new environment was created. Once I clicked refresh on the 'Select Interpreter' dialog, my kernel showed up: |
@rchiodo the problem seems to be with the "Select kernel" dialog which pops up when you run a notebook in VSCode.
edit: There seems to be some condition which triggers the current venv to appear in the picklist for 'select kernel'. Cannot quite figure out what that is. Have tried installing ipykernel, have tried running |
@guidorice I added a new issue for you (referencing your comment). |
Same issue here as @guidorice. The environments list seems to be incomplete (both from conda and virtualenv), and something seems to trigger some old envs that suddenly appeared, but the list is still incomplete. The normal interpreter works fine, but the issue only happens when you open Jupyter Notebook and try to "Select Kernel". No refreshing is available. So far I tried re-installing ipykernel, re-installing the JN extension, and saving the notebook inside the virtualenv environment folder. No success. |
Same issue here as @guidorice and @Mascobot. I'm currently using this work around:
|
Sweet. Nice work around. Just did it and it works. |
who still has this problem, I found that closing the ipynb file tab and opening it again solves it, if not, close the tab again and with the second mouse button, click on the ipynb file and open it with the terminal |
The only two solutions for me that seems to work until now is closing and reopening the file as mentioned above, or specifying the interpreter path in the "Python: Select Interpreter" from the Command Palette. |
Sorry everyone about this issue. If this still does not work, please do ping here and we'll happily re-open this issue and look into it, or please feel free to create a new issue,. |
Hi, I'm still getting this issue - I have upgraded jupyter, and when I SSH into a remote server and launch a notebook I am unable to select a kernel. When I load the notebook it never detects a kernel, and when I press on the kernel button on the top right nothing happens. If i search for my kernels in the search bar at the top nothing appears. I don't have this issue when I am loading notebooks on my local machine. Any help would be much appreciated! |
@dmnburrows Please could you file a new issue for this, thanks
|
The text was updated successfully, but these errors were encountered: