You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/access/vscode.md
+43-8Lines changed: 43 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,18 @@ There are two ways to set up the connection:
11
11
The main challenge with using VSCode is that the most convenient method for starting a remote session is to start a remote tunnel from the VS Code GUI.
12
12
This approach starts a session in the standard login environment on that node, however this won't work if you want to be developing in a container, in a uenv, or on a compute node.
13
13
14
+
This process is also demonstrated in a webinar on [Interactive computing on "Alps"](https://www.cscs.ch/publications/tutorials/2025/video-of-the-webinar-interactive-computing-on-alps):
The most flexible method for connecting VSCode is to log in to the Alps system, set up your environment (start a container or uenv, start a session on a compute node), and start the remote server in that environment pre-configured.
@@ -112,11 +124,6 @@ Once the tunnel is configured, you can access it from VSCode.
112
124
If you plan to do any intensive work: repeated compilation of large projects or running python code in Jupyter, please see the guide to running on a compute node below.
113
125
Running intensive workloads on login nodes, which are shared resources between all users, is against CSCS [fair usage][ref-policies-fair-use] of Shared Resources policy.
114
126
115
-
### Using with containers
116
-
117
-
!!! todo
118
-
write a guide
119
-
120
127
### Running on a compute node
121
128
122
129
If you plan to do computation using your VSCode, then you should first allocate resources on a compute node and set up your environment there.
@@ -158,10 +165,38 @@ If you plan to do computation using your VSCode, then you should first allocate
158
165
* `-n1` requests a single rank - only one rank/process is required for VSCode
159
166
* `--pty` allows forwarding of terminal I/O, for bash to work interactively
160
167
168
+
### Using with containers
169
+
170
+
This will use CSCS's **[Container Engine][ref-container-engine]**.
171
+
Using this workflow, one can pull a container from a registry like DockerHub.
172
+
Note that this process also requires that you have a GitHub account, with an authentication and authorization step as described earlier.
173
+
174
+
This will also use the Remote Tunnel extension and the VS Code connected to the GitHub account (see above).
175
+
176
+
```toml title="EDF file with image and mount paths"
177
+
image = "nvcr.io#nvidia/pytorch:24.01-py3"# example of PyTorch NGC image
This approach is not recommended, because while it may be easier to connect via the VS Code UI, it is much more difficult to configure the connection so that you can use uenv, containers or compute nodes.
0 commit comments