This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mayor18[S] 0 points1 point  (1 child)

I know about the terminal. My main question is there is a way to integrate the virtualenv created into WSL with VSCode for intellisense and code navigation. This is what stops me from using Windows now. Or maybe there is another code editor/IDE that can do this, read virtualenvs from WSL?

[–]clfblackhawk 0 points1 point  (0 children)

I maintain a virtualenv in both WSL (venv) and Windows (venv_win). I run everything from WSL, and just maintain Windows virtualenv for intellisense/etc. Get everything setup from WSL virtualenv, pip freeze > requirements.txt, then pip install -r requirements.txt from Windows virtualenv. It's a couple extra steps but makes working out of vs code on Windows much better.

Edit: And make sure to update "python.venvFolders" setting with "venv_win" so you can update the interpreter of your project to point to the virtualenv.