-
Notifications
You must be signed in to change notification settings - Fork 294
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
Newly created venv not picked or listed in kernel picker #12133
Comments
Refresh fixes it though. |
Possible we're not getting an event indicating the new envs have been created. |
Before creation Jupyter
Python
** Creation ** After the creation, I got a notifcation from Python Jupyter
Python
|
@rebornix I belive you didn't use the recommended python. Please note, when using conda, the recommendation is to create conda envs. creating virtual Envs from conda environments don't work too well. I have tried this and it works for me. |
@DonJayamanne you are right, I was using Conda to create .venv and I was not picking the recommended python interpreter:
For venv option in Create Python Environment, currently it doesn't work at all, even though it's an official Python/Conda dev container. |
@DonJayamanne despite the fact that I might be using the wrong interpreter, the venv was created, showed up in the Python interpreter, can show up if we refresh our kernel list, isn't this still a bug that we are not picking the new python environment? |
yes yes, agreed |
Type: Bug
Create an empty folder and open in VS Code
Create a dev container from the official conda template
Open the folder in dev container
Install Python and Jupyte prerelease
Switch kernel picker type to mru
notebook.kernelPicker.type: "mru"
Open a notebook, click on the kernel picker
After long progress through notification, the creation of venv succeeds (.venv folder created, and Python finds it). But we didn't select this intepreter as kernel, and when going through the same steps, the venv is also not listed under Local Python Environments.
VS Code version: Code - Insiders 1.74.0-insider (fef85ea792f6627c83024d1df726ca729d8c9cb3, 2022-11-21T05:22:37.848Z)
OS version: Windows_NT x64 10.0.22623
Modes:
The text was updated successfully, but these errors were encountered: