- connect to tigressgateway
- connect to spock
- change directory to folder with code
- edit the
jupyter_spock.sh
file to specify the requested time and resources
here is the jupyter_spock.sh
file contents:
- remove old slurm logs (just to make it easier to find current job)
- submit the compute request
[kt1303@spock-login code]$ sbatch jupyter_spock.sh
- open the log and copy the command to create the ssh tunnel on local machine
on local machine copy and paste the line that looks like this:
ssh -N -f -L 8889:spock7-c2-4:8889 kt1303@spock.princeton.edu
will need to connect to vpn… (todo figure out way around this)
- then scroll down to the server link that looks something like this:
http://127.0.0.1:8889/tree?token=3a55ebb93402a8979995e2806fb7bdb76aeab45
-
copy paste that into browser and begin working
-
kill the ssh tunnel on local machine
this returns an id number for the tunnel
🐛 | ⨳ how to
references
princeton computing guide