Jupyter Notebook
Follow these three steps below to connect to a remote host jupyter notebook in your browser:
1. Submit a job for running Jupyter
Modify the lines with "#SBATCH" for your own needs. For example, you may need to request GPU nodes, or larger memory nodes.
Once the job get allocated resources, you should see something like this in a file named jupyter-notebook-${jobid}.log
From here, your node is esplhpc-cp006, your port is 8030
2. Configure local SSH Tunnel
Build the SSH tunnel using the following command on your local computer's terminal - remember to change USERNAME to your own username:
Note that you can also use different login nodes esplhpccompbio-lv0[123].csmc.edu.
You can also add the following lines to your .bash_aliases
for faster access and saving a few keystrokes:
Then, you can connect by simply csmc-jupyter esplhpc-cp006 8030
on your local terminal.
3. Connect to remote Jupyter
Upon successful building the SSH tunel, you can connect to the running Jupyter notebook by simplying copy and paste the URL we saw in the first place. In this example, this is http://127.0.0.1:8030/?token=fb22cf8ab11ca19017fbb5b602d3374e1f90f4aae6a0f811
TODO: how can we put this in VSCode?
Note that you can connect to multiple running Jupyter notebook instances, as long as your ports are different.
Last updated