Skip to content

Create environment prompt triggers #22079

@karthiknadig

Description

@karthiknadig

Refs: #21965 #20133

Complexity: 2

Create Issue


Requirements:

  1. You need to have python installed on your system 3.8 or greater
  2. Install the latest pre-release of the python extension
  3. Set python.createEnvironment.trigger to prompt in user settings.

Verification

  1. Open a folder containing python file and at least one requirements.txt file.
  2. Ensure there are no .venv or .conda in the workspace.
  3. The selected python should be the system python (i.e., not a virtual environment)
  4. Open the python file and click on the run in terminal button at the top right corner in the editor
  5. you should see a prompt:
    image

Note: this will show up only once per session.

Re-load before trying other triggers: Try debug in terminal (using the command), or try launching a script in debug mode.
Also note: Once you create a .venv and delete it and select a global python before retrying.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions