Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
habrok:connecting_to_the_system:connecting_via_vsc [2025/07/31 08:48] – Add syntax highligthing pedrohabrok:connecting_to_the_system:connecting_via_vsc [2026/04/28 12:52] (current) – [Connecting with VS Code via SSH] pedro
Line 6: Line 6:
  
 ===== Using the web portal ===== ===== Using the web portal =====
-The simplest and most straightforward way of using VS Code on Hábrók is by using our [[https://portal.hb.hpc.rug.nl/|web portal]]. Simply login with your university account and open the VS Code Server Interactive App by navigating in the top bar to Interactive Apps -> VS Code Server or by clicking the shortcut in the main page after logging in. From the VS Code Server page, you can queue a job with the necessary memory and CPU requirements for your use case and the root directory for your VS Code session. After that, simply launch the job and wait for a while until your job begins, often this takes only just a moment. As soon as the job has started and is ready, you should see a blue button to Connect to VS Code. This will automatically start up your VS Code session in the compute node your job is running.+The simplest and most straightforward way of using VS Code on Hábrók is by using our [[https://portal.hb.hpc.rug.nl/|web portal]]. Simply login with your university account and open the VS Code Server Interactive App by navigating in the top bar to Interactive Apps -> VS Code Server or by clicking the shortcut in the main page after logging in. From the VS Code Server page, you can queue a job with the necessary memory and CPU requirements for your use case and the root directory for your VS Code session. After that, simply launch the job and wait for a while until your job begins, often this takes only just a moment. 
  
 +As soon as the job has started and is ready, you should see a blue button to Connect to VS Code. This will automatically start up your VS Code session in the compute node your job is running.
 +
 +If you are using VS Code to program in Python, you should take a look at the [[..:examples:vscode_python|]] documentation page to be setup your environment.
 ===== Connecting with VS Code via SSH ===== ===== Connecting with VS Code via SSH =====
 +<WRAP center round tip 60%>
 +Connecting via SSH requires the setup below, which involves a number of steps. If you simply mean to quickly edit a script or do basic software development, then the web portal method described above will likely provide a much more streamlined user experience. If you require advanced features provided by the local Visual Studio Code installation on your PC, or want to frequently execute your code on local files, then the setting up the SSH connection may be worthwhile.
 +</WRAP>
 +
 If you'd like to run the VS Code client natively in your desktop, you can also do so by setting up a Remote-SSH connection. This takes some additional setup when compared with the connection via the [[https://portal.hb.hpc.rug.nl/|web portal]]. If you'd like to run the VS Code client natively in your desktop, you can also do so by setting up a Remote-SSH connection. This takes some additional setup when compared with the connection via the [[https://portal.hb.hpc.rug.nl/|web portal]].