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

Delete and Re-create conda environments #22075

Closed
3 tasks done
karthiknadig opened this issue Sep 25, 2023 · 0 comments
Closed
3 tasks done

Delete and Re-create conda environments #22075

karthiknadig opened this issue Sep 25, 2023 · 0 comments
Labels
testplan-item Test plan item/assignments for upcoming release

Comments

@karthiknadig
Copy link
Member

karthiknadig commented Sep 25, 2023

Refs: #21828

Complexity: 3

Create Issue


Requirements:

  1. Have conda installed
  2. Latest version of python extension pre-release.

Verification:

Setup

  1. Create a folder with a myscript.py file in it. Content of the file does not matter.
  2. In the same folder create a .conda environment: conda create -p .conda python
  3. Open folder in VS Code
  4. Open myscript.py, this should activate the python extension.

Verify Re-create option

  1. Ensure you do the set up steps
  2. Run Python: Create Environment ... command
  3. Select conda from the options.
  4. Extension will detect existing conda environment and give you two options (re-create or use existing)
  5. Select re-create.
  6. This should delete the existing coda environment and re-create it.
  7. You should be able to see this in the logs.

Note: The delete can fail, but you should be able to see instructions in the logs about deleting it manually.

Verify Use Existing

  1. Ensure you do the set-up steps
  2. Run Python: Create Environment ... command
  3. Select use existing.
  4. Python extension should just select that environment.

Your folder structure should look like this:

workspace1
|- .conda (dir)
|- myscript.py
@karthiknadig karthiknadig added the testplan-item Test plan item/assignments for upcoming release label Sep 25, 2023
@sandy081 sandy081 added this to the September 2023 milestone Sep 26, 2023
@sandy081 sandy081 removed their assignment Sep 26, 2023
@jrieken jrieken assigned sandy081 and unassigned jrieken Sep 26, 2023
@sandy081 sandy081 removed their assignment Sep 26, 2023
@bhavyaus bhavyaus assigned bhavyaus and unassigned devinvalenciano and bhavyaus Sep 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item Test plan item/assignments for upcoming release
Projects
None yet
Development

No branches or pull requests

5 participants