-
Notifications
You must be signed in to change notification settings - Fork 274
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
Unknown virtual env/environment (venv) is being queried for by Jupyter extension #12501
Comments
@drorata Can you please provide the debug logs? Set Output for
|
Here are the logs using the The directory |
Some other extension is asking the Python extension about this environment |
@karrtikr Spot on! Disabling the |
That's a question for the Jupyter team, so I'm transferring your issue to Jupyter. I think Jupyter has a clear cache command, perhaps that should help clear list of stored kernels. |
Please could you enable logging as follows:
|
Thanks for the suggestion @DonJayamanne. I inspected the logs and I made me do the following: In the logs, I found something like Otherwise, I scanned all the locations indicated by After that, I restarted vscode and opened a notebook. The logs still contain a reference to the environment. You can find the new logs in this gist. |
@drorata
|
Sorry, you are right that will not work.
|
Step 1: I added Step 2: I opened a notebook and clicked the I clicked this option. Step 3: In there, the offending kernel was present: Step 4: Here are the new logs. |
Thanks again for the logs and for your patience, |
I installed the insider version, installed the Jupyter extension. Closed and opened the editor, open the Jupyter output and opened a notebook. The offending virtual environment was not to be found in the logs! |
Thanks for getting back, this confirms the bug has been fixed and will be shipped with the next release. |
Discussed in microsoft/vscode-python#20431
Originally posted by drorata December 25, 2022
When opening a
py
file I see in the logs:I totally don't understand where and why vscode uses the environment
/Users/username/.local/share/virtualenvs/test-project-GV0hGqPR
? It might be related to the bug reported here microsoft/pylance-release#3784.The text was updated successfully, but these errors were encountered: