# Julia-repl VScode extension on HPC

**URL:** <https://discourse.julialang.org/t/julia-repl-vscode-extension-on-hpc/110898>\
**Category:** VS Code\
**Tags:** hpc, repl, server, julia\
**Created:** [February 28, 2024, 1:39pm UTC](https://discourse.julialang.org/t/julia-repl-vscode-extension-on-hpc/110898 "2024-02-28T13:39:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SingingKim](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Post date:** [February 28, 2024, 1:39pm UTC](https://discourse.julialang.org/t/julia-repl-vscode-extension-on-hpc/110898/1 "2024-02-28T13:39:32Z")

</div>

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…

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

```

![image](https://global.discourse-cdn.com/julialang/original/3X/0/a/0a359fafee40ebd003d75b8b47429ba3e68ffc8f.png)

Any suggestions would be appreciated.

---

<div class="post-metadata">

**Author:** ![nateybear](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nateybear/32/20645_2.png) [@nateybear](https://discourse.julialang.org/u/nateybear)\
**Post date:** [February 28, 2024, 3:06pm UTC](https://discourse.julialang.org/t/julia-repl-vscode-extension-on-hpc/110898/2 "2024-02-28T15:06:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [February 28, 2024, 3:13pm UTC](https://discourse.julialang.org/t/julia-repl-vscode-extension-on-hpc/110898/3 "2024-02-28T15:13:48Z")

</div>

At PC2 this is (kind of) documented [here](https://upb-pc2.atlassian.net/wiki/spaces/PC2DOK/pages/1902225/Access+for+Applications+like+Visual+Studio+Code#Compute-nodes) and [here](https://upb-pc2.atlassian.net/wiki/spaces/PC2DOK/pages/1903803/VS+Code+Remote+Usage). Maybe this helps.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [February 28, 2024, 4:22pm UTC](https://discourse.julialang.org/t/julia-repl-vscode-extension-on-hpc/110898/4 "2024-02-28T16:22:57Z")

</div>

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

> **[MobaXterm free Xserver and tabbed SSH client for Windows](https://mobaxterm.mobatek.net/)**
>
> The ultimate toolbox for remote computing - includes X server, enhanced SSH client and much more!
