Skip to content

Investigate where we should implicitly trigger the Python: Create Environment command #20133

Closed

Description

Two options:

  1. Prompt the user if they want to create an environment
  2. If there is a pyproject.toml or requirements.txt file in the workspace, run the Create Environment command (or ask the user to select a virtual environment or create environment)

Activity

  1. added
    feature-request
    on Nov 1, 2022
  2. added
    triage-needed
    on Nov 1, 2022
  3. luabud commented on Nov 3, 2022

    @luabud
    Member

    We can start with option 2 as it shouldn't be hard to expand it to 1 if we want to?

  4. added
    needs PR
    and removed
    triage-needed
    on Nov 3, 2022
  5. karrtikr commented on Dec 22, 2022

    @karrtikr

    Related: #4606. If we were to add such a prompt it could be used here.

  6. added
    area-environments
    on Dec 22, 2022
  7. 16 remaining items

  8. luabud commented on Sep 25, 2023

    @luabud
    Member

    we ended up going with a notification prompt being shown when users attempt to run code (through any of our run commands like run in terminal or run selection in terminal, or when they start debugging), AND the following conditions are met:

    • The workspace does not have ".venv" or ".conda"
    • The selected interpreter is a global or system python
    • There are NO poetry.lock, pipfile, .python_version etc in the workspace
    • There IS either some file that matches "requirement.txt" or "requirements/*.txt"
  9. added
    needs spike
    and removed
    needs PR
    on Sep 25, 2023
  10. removed
    needs spike
    on Sep 25, 2023
  11. luabud commented on Sep 25, 2023

    @luabud
    Member

    This is the issue tracking the work: #21965

  12. added
    needs spike
    on Sep 25, 2023
  13. locked as resolved and limited conversation to collaborators on Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsfeature-requestneeds spikeon-testplan

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions