You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate where we should implicitly trigger the Python: Create Environment command #20133
Prompt the user if they want to create an environment
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)
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"
Activity
luabud commentedon Nov 3, 2022
We can start with option 2 as it shouldn't be hard to expand it to 1 if we want to?
karrtikr commentedon Dec 22, 2022
Related: #4606. If we were to add such a prompt it could be used here.
16 remaining items
luabud commentedon Sep 25, 2023
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:
luabud commentedon Sep 25, 2023
This is the issue tracking the work: #21965