The project structure and user experience of this extension is very opinionated. While the supported project structures and workflows are considered common enough, do not be surprised if your particular workflow is not supported, especially if they would be considered advanced to someone new to Python.
This extension is meant act as a playground for the Python extension around environments and solicit feedback on this extension's functionality. If you have any feedback, please start a discussion. Popular functionality may make it's way into the Python extension itself.
Automatic detection of activated virtual environments
If the VIRTUAL_ENV environment variable is set, WWBD will use that to set the selected Python environment.
Create Environment command
Use an appropriate interpreter (the selected interpreter, ask the user to use the newest version of Python installed, or ask the user to pick an interpreter).
Create a virtual environment in the workspace that git will ignore: python -m venv .venv --prompt . && echo "*" > .venv/.gitignore.
Find the most appropriate requirements file (file name contains dev and requirements and ends in .txt, or requirements.txt).
Install the requirements into the environment: python -m pip install --requirement <requirements file>.