Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
habrok:connecting_to_the_system:connecting_via_vsc [2024/04/15 12:10] – ↷ Page moved from habrok:connecting_via_vsc to habrok:connecting_to_the_system:connecting_via_vsc pedro | habrok:connecting_to_the_system:connecting_via_vsc [2025/05/27 09:18] (current) – [Advanced: Connecting to Hábrók with Visual Studio Code] fokke | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Advanced: Connecting to Hábrók with Visual Studio Code ====== | ====== Advanced: Connecting to Hábrók with Visual Studio Code ====== | ||
- | [[https:// | + | [[https:// |
- | ===== Connecting | + | There is a separate section on using Python virtual environments: |
+ | |||
+ | ===== Using the web portal ===== | ||
+ | The simplest and most straightforward way of using VS Code on Hábrók is by using our [[https:// | ||
+ | |||
+ | ===== Connecting with VS Code via SSH ===== | ||
+ | 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:// | ||
+ | |||
+ | ==== Connecting with VS Code via SSH to an access node ==== | ||
- If you haven' | - If you haven' | ||
Line 9: | Line 17: | ||
- On the Settings page, search for '' | - On the Settings page, search for '' | ||
- Press '' | - Press '' | ||
- | - You can then fill in the ssh command. Let's say you want to connect to '' | + | - You can then fill in the ssh command. Let's say you want to connect to '' |
- You will see a new window appear with a drop-down menu asking which platform type you are connecting to. Choose " | - You will see a new window appear with a drop-down menu asking which platform type you are connecting to. Choose " | ||
- At the bottom of that window, a console will appear and show you the same prompt when you first connected to Hábrók, if you want to accept the host key. Write ' | - At the bottom of that window, a console will appear and show you the same prompt when you first connected to Hábrók, if you want to accept the host key. Write ' | ||
Line 18: | Line 26: | ||
- | ===== Connecting with VS Code to a compute node===== | + | ==== Connecting with VS Code via SSH to a compute node ==== |
In addition to connecting to one of the login or interactive nodes, you may choose to connect directly to a compute node in order to have a similar environment and restrictions as you have for your compute jobs. You could even use a debugger to interactively debug your program in an identical environment as those your jobs run in. To do so, you should follow the same instructions as above, but there are a few extra steps and details to take into account: | In addition to connecting to one of the login or interactive nodes, you may choose to connect directly to a compute node in order to have a similar environment and restrictions as you have for your compute jobs. You could even use a debugger to interactively debug your program in an identical environment as those your jobs run in. To do so, you should follow the same instructions as above, but there are a few extra steps and details to take into account: | ||
Line 24: | Line 32: | ||
* Connect to Hábrók to any of the login nodes as normal (via a terminal, MobaXterm, or the web portal) and submit a job to the desired node type and with the desired settings. This job should not do anything, so you can use the '' | * Connect to Hábrók to any of the login nodes as normal (via a terminal, MobaXterm, or the web portal) and submit a job to the desired node type and with the desired settings. This job should not do anything, so you can use the '' | ||
- | | + | |
- | #SBATCH --time=00: | + | #SBATCH --time=00: |
- | #SBATCH --partition=regular | + | #SBATCH --partition=regular |
- | #SBATCH --nodes=1 | + | #SBATCH --nodes=1 |
- | #SBATCH --cpus-per-task=4 | + | #SBATCH --cpus-per-task=4 |
- | #SBATCH --mem=8GB | + | #SBATCH --mem=8GB |
| | ||
- | | + | |
* Once the job is running, you can find out what node has been assigned to it with '' | * Once the job is running, you can find out what node has been assigned to it with '' | ||
* Press '' | * Press '' | ||
* From the drop-down menu, select "+ Add New SSH Host..." | * From the drop-down menu, select "+ Add New SSH Host..." | ||
- | * Input the '' | + | * Input the '' |
* You will then be asked what configuration file to save the information at. Any of the suggested options should work, the '' | * You will then be asked what configuration file to save the information at. Any of the suggested options should work, the '' | ||
* Again press '' | * Again press '' |