Apr-16-2021, 08:38 PM
It would be the chore of your IDE to do this.
Using VSCode, If you have selected your virtual environment as the python interpreter (ctrl-shift-P --> python:select interpreter), then whenever you select new terminal from menu, it will open with the virtual environment active.
However If I close a folder that has a terminal window in which the virtual environment has been activated, exit VSCode, and then re-start, the terminal window appears, but not with virtual environment activated. I haven't been able to figure this one out.
Using VSCode, If you have selected your virtual environment as the python interpreter (ctrl-shift-P --> python:select interpreter), then whenever you select new terminal from menu, it will open with the virtual environment active.
However If I close a folder that has a terminal window in which the virtual environment has been activated, exit VSCode, and then re-start, the terminal window appears, but not with virtual environment activated. I haven't been able to figure this one out.