-
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
Can't see or select Jupyter kernel's from Kernel drop-down #7706
Comments
@bnapora Could you please try downloadin VS Code - Insiders (version number should be 1.61.0) and checking this scenario quick? That should get you the newest version of our bits, and I believe this is a bug that has been addressed already. It's a safe SxS install with VS Code - Stable, so it won't mess anything up with your current install. |
@IanMatthewHuff I will have to fix my vscode insiders install before I can test this is issue. All of my python envs are in SSH Targets. Currently can't open any of my SSH Targets in Insiders build, because I get an "EISDIR: illegal operation on a directory, read" when it tries to open the SSH config file. Thanks for the quick response and for the suggestion |
As a temporary work around, you can:
This interpretr will now work in VS Code and you might need to re-load VS Code just once more to get it workign in jupyter extension. |
This should be fixed now. |
What are the steps to verify what you fixed? The steps in the OP seem pretty generic |
This issue continues to persist in VS Code Jupyter notebooks, as of June 2022. Please re-open this issue until is is solved in a reliable way. This issue has been present in VS Code Jupyter extension for several years now, as evidenced by a litany of GitHub issues mentioning it. |
@cpoptic Can you be more specific? Or perhaps open a new issue. What exactly doesn't work? Creating kernels using this will show them in the kernel dropdown:
Granted it takes a reload but it should find it eventually. |
@rchiodo When I modify the virtual environments through Anaconda, removing one virtual environment and creating one new, the new virtual environments cannot provide a stable jupyter kernel for editing. The new interpreter disappears from the jupyter kernel options every time after creating a new .ipynb file in vs code, restarting vs code or re-activating the virtual environments do not help. Occasionally, everything works normal, for instance, after I run a python file with the new python interpreter in vs code, but this method is not reproducible. |
@danielaiyuan |
Issue Type: Bug
Can no longer select jupyter kernel in virtual environments created outside of /usr directory. In previous version other jupyter kernels would appear in list after restarting VSCode. (Seems to have stopped working with version 1.6, but not certain.) Now the only way to get Notebook to work with selected kernel is to first open notebook in Jupyter Labs (or Notebook), then select the appropriate kernel, save notebook, and then open notebook in VSCode.
Steps:
1.) Create 2 or more virtual environments using "venv"
2.) Install ipykernel in each environment
3.) Configure ipykernel environment name
4.) Open Jupyter notebook and attempt to select or locate no environment
5.) New environment is not displayed and no method to locate or add it.
Suggestion:
Configure VSCode to use same kernelspec as Jupyter, for selecting kernels.
Extension version: 2021.8.2041215044
VS Code version: Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T12:00:31.514Z)
OS version: Windows_NT x64 10.0.22458
Restricted Mode: No
Remote OS version: Linux x64 5.10.43.3-microsoft-standard-WSL2
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: