| Both sides previous revision Previous revision Next revision | Previous revision |
| habrok:connecting_to_the_system:connecting_via_vsc [2026/04/08 21:51] – [Connecting with VS Code via SSH] pedro | habrok:connecting_to_the_system:connecting_via_vsc [2026/04/28 12:52] (current) – [Connecting with VS Code via SSH] pedro |
|---|
| |
| ===== 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 important 60%> | <WRAP center round tip 60%> |
| Unless you have a strong reason to use VS Code via SSH, we strongly recommend using the web portal method described above! It will provide a much easier user experience with barely any setup and has nearly the same capabilities. | 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> | </WRAP> |
| |