-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to Find Pipenv Virtual Environment in VSCode Jupyter Notebook #23260
Comments
Do you see the pipenv environment when using the command Python: Select Interpereter |
Hi @DonJayamanne, Yes, the pipenv environment is shown when I search in
![]()
|
@karthiknadig I have seen such issues in the past, environments setup in settings are not visible in the environments API. |
Any updates? |
@euisuk-chung I am still investigating this, sorry for the lack of response. Was the @DonJayamanne For We don't show environments that are (from the tooling perspective) not associated with the project. The select interpreter command from python shows the setting value Re-using the same environment for different projects goes against the recommendations of how some of these tools handle the environment. |
Hi @karthiknadig, I am the original author from microsoft/vscode-jupyter#15564 who face the issue. Thanks for your investigation. Hope we can fix this issue in the short run. I created a However when I ran the jupyter notebook in vscode, I couldn't find the same python interpreter from Hope the above information can give you some idea. |
@LiPingYen typically you would have a different virtual environment for each of your workspace. Actually the best way that you would do this is using Having a single global environment can be problematic over time. As more and more packages get installed, it can leave the environment in a state where it may not be usable in some projects. The added benefit of having the Please give the |
@karthiknadig thanks for your recommendation. I know creating isolated virtual environment can keep each project without interfering each other. However, in my scenario, I only need to handle one Curiously, why vscode can detect I still hope vscode can Integrate the |
I have encountered the same issue for a while. Curiously, the environments created with pipenv used to be there in the past but at some point a few weeks ago they disappeared. For me, the pipenv environments don't show up when I |
Hi @karthiknadig, will VSCode support |
I've the same issue. I can't use the same virtual environment in different projects. It kind of creates redundant virtual environments for each project. If I use the older version of the extension then only it is allowing to see the other virtual environments. |
I'm having a similar issue. My pipenv environments were identifiable and working for the first few weeks of using Jupyter notebooks in VScode, and suddenly they can no longer be found/used. |
Discussed in microsoft/vscode-jupyter#15564
Originally posted by LiPingYen April 18, 2024
I'm encountering an issue while using Jupyter Notebook within VSCode where I can't locate the Python virtual environment created by
pipenv
.When I run a Python script, the pipenv virtual environment is found without any problem. Currently, it seems that when selecting the Jupyter kernel, VSCode can successfully locate the base and conda-related virtual environments, but it fails to find the one created by
pipenv
.I've searched for relevant articles but haven't found a suitable solution. Has anyone experienced a similar situation and found a resolution? Any insights or solutions would be greatly appreciated.
The text was updated successfully, but these errors were encountered: