I'm playing with Visual Studio Code on Ubuntu. One big problem is I can't figure out how to attach a virtualenv to a file. So, I open the file. On the lower left corner, I see the default path to the system python executable:
when I click on it, a list with two paths is shown on the top middle box (both are the default system python's).
I tried to set the python.venvPath
(in green in the right window).
but it does not work.
My question is: how to assign a virtualenv to a project, so that whenever I open that file, it uses that venv?