Julia-repl VScode extension on HPC

I’m working on a HPC with a master node and calculation nodes.

Q. Is there a way to start Julia-repl on VScode at a non-master node of HPC?

If I type shift+enter on test.jl file with VScode editor, it starts a julia-repl on a master node.

So, I tried again after I got allocated resources using srun --pty /bin/bash, but it still starts a seperate julia-repl on a master node…

[jaykim@masternode ~]$ srun --pty /bin/bash
[jaykim@node01 ~]$ 

image

Any suggestions would be appreciated.

I’ve tried to do this before, I believe the easier way to approach this is to make a reservation on a compute node and then attach your vs code remote session to the compute node. This will probably require proxying your SSH connection through the login node, as those are often the only ones exposed to the external network. If you google “vs code remote on HPC” or “vs code remote on compute nodes” there are plenty of resources.

At PC2 this is (kind of) documented here and here. Maybe this helps.

1 Like

A recomendation - if you are using a Windows laptop or desktop to remotely access the HPC then download and use MobaXterm. It has an intuitive GUI for setting up ssh tunnels

1 Like