Replies: 3 comments 6 replies
-
Are you saying the environment activated in terminal is not the one you've selected (which is |
Beta Was this translation helpful? Give feedback.
-
Ok, adding that setting fixed the issue. Is there a reason why that setting is not the default? Also, I don't see it called out anywhere on https://code.visualstudio.com/docs/python/environments |
Beta Was this translation helpful? Give feedback.
-
Yep I think it was because some users may not like us altering their current shell automatically, however I think that can be revisited, converting this into a discussion so we can reconsider it.
It's in https://code.visualstudio.com/docs/python/settings-reference, perhaps we should also mention it in the environment docs if it's off by default. We'll create an issue in the docs https://github.com/microsoft/vscode-docs/issues if need be after the discussion. |
Beta Was this translation helpful? Give feedback.
-
Environment data
Repro Steps
base
(in addition tobase
which python
){
"python.defaultInterpreterPath": "/Users/[...]/anaconda3/envs/[your_env]/bin/python",
}
View: Toggle Terminal
, note howconda activate yourenv
is runExpected behavior
When I restart VsCode, the previous environment is restored (or if not possible, the environment that is associated with the
defaultInterpreterPath
is restored)Actual behavior
When I restart VSCode, the enviroment is not restored, and instead the
base
envirnoment is active.Logs
Beta Was this translation helpful? Give feedback.
All reactions