Can I use julia from Windows Subsystem for Linux in VS Code Julia Extension

Hello there,

Is there a way to make the julia vscode extension use the julia from the WSL? I have already setup the integrated terminal so that it opens the zsh in the WSL Ubuntu, but the julia extension seems to find only the windows julia.

TIA,

Rodrigo

Yes, this is how my workflow is setup. First, obviously install Julia on WSL2 and make sure your julia binary is in PATH. I would also get rid of your Windows Julia installation as to avoid any conflicts. From the vscode side (assuming its installed on windows), simply download the WSL extension and configure it (basically just open up a folder on your WSL 2 instance). Once you have vscode successfully configured with WSL2, download the Julia extension. Make sure to install this julia extension on the "remote " instance of vscode – see my image example below. This should pretty much be it.

Here’s how my extensions look like in VS Code:

5 Likes

It worked like a charm. Thank you very much!

Best,

Rodrigo