forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
Description
Refs: #21828
Complexity: 3
Requirements:
- Have
condainstalled - Latest version of python extension pre-release.
Verification:
Setup
- Create a folder with a
myscript.pyfile in it. Content of the file does not matter. - In the same folder create a
.condaenvironment:conda create -p .conda python - Open folder in VS Code
- Open
myscript.py, this should activate the python extension.
Verify Re-create option
- Ensure you do the set up steps
- Run
Python: Create Environment ...command - Select
condafrom the options. - Extension will detect existing conda environment and give you two options (re-create or use existing)
- Select re-create.
- This should delete the existing coda environment and re-create it.
- 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
- Ensure you do the set-up steps
- Run
Python: Create Environment ...command - Select use existing.
- Python extension should just select that environment.
Your folder structure should look like this:
workspace1
|- .conda (dir)
|- myscript.py
Reactions are currently unavailable