You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatically select interpreter when VIRTUAL_ENV is set #2124
When a virtual environment is activated the VIRTUAL_ENV environment variable is set to the location of the virtual environment. We could pick up on this and use it as the implicit value of python.pythonPath when that setting has not already been set.
You might have just gone above my head a little; I don't really understand the difference. But it does appear to be the case that it's not quite accurate, at least not in the cases that a user would recognize. Namely, when I put in place my goofy hack from the latest comment at #2333, it all "Just Works" the way I expect/think it should. It seems to me like re-activating a detected virtualenv in ~/.bash_profile wouldn't work so effectively if what you're saying is true. Does that make any sense?
Activity
alexwhittemore commentedon Aug 3, 2018
brettcannon commentedon Aug 3, 2018
alexwhittemore commentedon Aug 4, 2018
brettcannon commentedon Aug 9, 2018
alexwhittemore commentedon Aug 9, 2018
You might have just gone above my head a little; I don't really understand the difference. But it does appear to be the case that it's not quite accurate, at least not in the cases that a user would recognize. Namely, when I put in place my goofy hack from the latest comment at #2333, it all "Just Works" the way I expect/think it should. It seems to me like re-activating a detected virtualenv in ~/.bash_profile wouldn't work so effectively if what you're saying is true. Does that make any sense?
brettcannon commentedon Aug 9, 2018
I get it, but I think we might be talking about different things in terms of how/where code is being executed.
karrtikr commentedon Dec 22, 2022
Closing as dup of #18178.