Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize creation of python environment through "Python: Create environment.." -> "Venv" in the command palette #23125

Closed
mscheltienne opened this issue Mar 22, 2024 · 2 comments
Labels
area-environments Features relating to handling interpreter environments feature-request Request for new features or functionality needs community feedback Awaiting community feedback

Comments

@mscheltienne
Copy link

mscheltienne commented Mar 22, 2024

When creating a new python virtual environment, I can select which python interpreter to use to create the environment, and that's about it. I would like to add a couple of settings to that useful tool:

(1) Automatically enable the environment in the current terminal (currently a new terminal must be open?)

(2) A list of commands to automatically run on environment creation. In my case, I would like to auto-run the following on environment creation:

pip install --upgrade pip setuptools
pip install ipykernel ipython isort ruff

(3) An environment name expression where e.g. $WORKSPACE could be used to put in the workspace name (I find very helpful to have the workspace in the environment name in case multiple terminals with multiple environments are opened), e.g.

Default = ".venv"
Examples: ".my-workspace" or ".my-workspace-venv"

If any of those feature already exist, I would be happy to try them. I haven't been able to find those settings.

@karthiknadig karthiknadig removed their assignment Mar 25, 2024
@karthiknadig karthiknadig transferred this issue from microsoft/vscode Mar 25, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 25, 2024
@anthonykim1 anthonykim1 added area-environments Features relating to handling interpreter environments feature-request Request for new features or functionality needs community feedback Awaiting community feedback and removed triage-needed Needs assignment to the proper sub-team labels Mar 26, 2024
Copy link

Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

@brettcannon
Copy link
Member

Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue.

@brettcannon brettcannon closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments feature-request Request for new features or functionality needs community feedback Awaiting community feedback
Projects
None yet
Development

No branches or pull requests

5 participants