The address Jupyter creates by default (the one with the name of a compute node) will not work outside the cluster's network. Click the play button under the Start/Stop column.įinally, open a web browser on your local machine and enter the address where port is the one specified in your log file.On your new tunnel, click the key symbol under the settings column and choose your ssh private key.Use the information in your jupyter notebook log file to fill out the boxes.Click the radio button for "Local port forwarding".Under Tools choose "MobaSSHTunnel (port forwarding)".You will need to take a look at your job's log file to get the details you need. See our guide on connecting with MobaXterm for instructions on how to get set up. On a Windows machine, we recommend you use MobaXterm. You can check the output from the job you started to get the specifc info you need. On a Mac or Linux machine, you can start the tunnel with an SSH command. The log file with information about how to connect will be in the directory you submitted the script from, and be named jupyter-notebook-.log where jobid is the slurm id for your job. If you see a "PD" in the status column, you will have to wait for your job to start running to connect. You will see an "R" in the ST or status column for your notebook job if it is running. #!/bin/bash #SBATCH -partition devel #SBATCH -cpus-per-task 1 #SBATCH -mem-per-cpu 8G #SBATCH -time 6:00:00 #SBATCH -job-name jupyter-notebook #SBATCH -output jupyter-notebook-%J.log # get tunneling info XDG_RUNTIME_DIR = "" port = $(shuf -i8000-9999 -n1 ) node = $(hostname -s ) user = $(whoami ) cluster = $(hostname -f | awk -F "." ' to check.
0 Comments
Leave a Reply. |