Skip to content

Commit 3b4610f

Browse files
authored
Merge pull request #71 from LevensteinLab/andrea-vscode
Add instructions for using VS Code with the Misha cluster via VPN
2 parents c1a4626 + 54b75c6 commit 3b4610f

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
.vscode/settings.json

docs/Resources/vs_code.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ Some basic tips to get started:
77
4. Install the Python extension
88
5. Create an environment
99
6. Use the debugger. You can copy `Resources/debug_me.py` to try it out! If you want, you can create a new project repo that you will also use for the pytorch tutorial as part of your first project.
10+
11+
To use VS Code with the cluster off campus, you will need to use a VPN (see `Resources/hpc.md` for more information on using the cluster and `Resources/vpn.md` to configure the VPN). To connect VS Code to the Misha cluster:
12+
1. Go to the [Misha OnDemand website](https://ood-misha.ycrc.yale.edu/).
13+
2. Start a VS Code Proxy from the Interactive Apps section.
14+
- Configure the proxy according to your needs (e.g. time, memory, number of cores, and type of partition)
15+
- Launch the session. It may take a few minutes depending on how busy the cluster is
16+
- If it's your first time using the VS Code proxy, follow the instructions listed to configure your `~/.ssh/config` file
17+
3. Once the proxy is running, open the Command Palette in VS Code (Mac: Cmd + Shift + P; Windows: Ctrl + Shift + P) and type `Remote-SSH: Connect to Host...`, then choose `vscode-server`.
18+
4. Complete the 2-factor authentication using Duo or a phone call (do this quickly or it will time out). If successful you should see `SSH: vscode-server` on the bottom left corner.

0 commit comments

Comments
 (0)