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

Change the default name of the created Conda environment #24745

Closed
yuttai opened this issue Jan 26, 2025 · 1 comment
Closed

Change the default name of the created Conda environment #24745

yuttai opened this issue Jan 26, 2025 · 1 comment
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@yuttai
Copy link

yuttai commented Jan 26, 2025

The new Conda environment created by VS Code is always named by ".conda".
Image
Image
If we use this method to create more than one Conda environments named ".conda", they could not be distinguished directly by their display names. To distinguish them more easily, is it possible to change the default name of the created Conda environment to the name of the folder it contained? Thanks.

@yuttai yuttai added the feature-request Request for new features or functionality label Jan 26, 2025
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 26, 2025
@karthiknadig
Copy link
Member

conda allows creating environment by name or by prefix. We use the prefix method in the extension, as it creates the environment in the project. This allows for safe clean-up of the environment without disruptions. Also, this allows us to associate the environment with the project, for named environment there is no easy way to say which project the environment belongs to.

Try this extension, where you have option to create named environments. It is in preview and will need pre-release version of python extension (2024.23): https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-python-envs

I recommend filing this bug on Anaconda Navigator, as the display name there can be handled better by the navigator by using the containing project folder name.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2025
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants