-
Notifications
You must be signed in to change notification settings - Fork 304
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
Opening a notebook in browser does not appear to set up Python environment #13348
Comments
We have a way to reproduce this with a public template . It is worth highlighting that Visual Studio Code in Codespaces is configured to have the default Python interpreter from the virtualenv. The behavior of not automatically selecting the kernel in the Jupyter Notebook is new. In previous releases it was automatically selected. |
With the new kernel picker, we do not default the kernels, the users are expected to select them, unless there is ever ONLY one Python environment and zero jupyter kernlespecs and zero remtoe jupyter servers. |
Thanks for filing this issue.
Its likely you opened this notebook in the past and VS Code now remembers the kernel that was last used.
The Python extension is responsible for activation of the environment in the terminal, hence I would chase up this issue with the Python extension. |
Thanks for providing an explanation to the new behavior. In the context of an educational setting, it is error prone to ask students to make a selection when there are multiple Python interpreters available. |
Got it, lets close this issue in favour of microsoft/vscode#130946 |
Was this design choice ever run though any kind of usability testing? I think a quick explanation of this choice is in order... What if you have to service a very long list of novice python users, each with a long list of Jupyter notebooks unseen by VS Code (such as auto-named output notebooks generated by |
What is also needed (apart from kernel auto-selection actually selecting preferred/single kernel automatically) is this kernel filtering / auto-selection to apply to python scripts ( |
Applies To
What happened?
When opening up a notebook in a Codespace:
I do not encounter these issues when I open a notebook locally in VS Code.
VS Code Version
Version: 1.77.3 Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710 Date: 2023-04-12T09:19:00.989Z Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.0.0
Jupyter Extension Version
v2023.3.1201040234
Jupyter logs
Coding Language and Runtime Version
Python v3.10.10
Language Extension Version (if applicable)
v2023.6.1
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote
The text was updated successfully, but these errors were encountered: