Skip to content

Add preexisting environment to environment selection #25441

Closed as not planned
Closed as not planned

Description

@avalatea

Value Statement

As a user I would like to be able to generate my local environment for my mono repo in a specific way and to be able to switch around them easily in vscode. For this ticket, let's implement a way for a user to add a preexisting env into python environments.

Details

I have a mono repo with multiple environments: API and Pipelines. I generate each of the .venv/ within the mono repo through poetry. This generates these two envs:

api/.venv
pipelines/.venv

However, I seem to be unable to add them both to the environment selection:

Here you see the pipeline environment.

Image

But when I select a different interpreter, the pipeline environment would disappear.

Image

Ideally, I should be able to add both .venv at the same time so that I can swap them around depending on what part of the codebase I am working on.

Activity

  1. eleanorjboyd commented on Sep 8, 2025

    @eleanorjboyd
    Member

    Hi! Do you have the python environments extension in use? You can see by the python logo in the sidebar. If not, install that and then add this to your settings "python.useEnvironmentExtension: true". From there you can right click on the parent folder of the venv (like api) and select "add as python project". Doing this should make the venv discoverable.

    This is not our desired behavior (to have to do this manual action to discover) but is the current status. Thanks

  2. github-actions commented on Oct 9, 2025

    @github-actions

    Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

    Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityinfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions