Visual Studio Code: Difference between revisions

Jump to navigation Jump to search
More details for compute nodes
(Add link to YouTube videos)
(More details for compute nodes)
Line 73: Line 73:
=Connection to a compute node=
=Connection to a compute node=


* Start a new <b>[[Running_jobs#Interactive_jobs|interactive job]]</b> and take note of the allocated compute node name.
Connection procedure:
** <b>Important:</b> make sure to request enough memory, either with <code>--mem</code> or <code>--mem-per-cpu</code>.
# Make sure VS Code Server is installed as described in the previous section.
* In VS Code, start a new remote session with the name of the allocated compute node.
# Start a new <b>[[Running_jobs#Interactive_jobs|interactive job]]</b> (with <code>salloc</code>) and take note of the allocated compute node name.
## <b>Important:</b> make sure to request enough memory (at least <code>2000M</code>).
# In VS Code, start a new remote session with the name of the allocated compute node:
## Press <code>F1</code> or <code>Ctrl+Shift+P</code> to start the command prompt <code>&gt;</code> in the Command Palette.
## Start typing and select <i>Remote-SSH: Connect to Host...</i>: <b>&gt; Remote-SSH: Connect to Host...</b>
## Enter the noted compute node name.
### If you get prompted for the type of operating system, select <b>Linux</b>


=See also=
=See also=
cc_staff
782

edits

Navigation menu