You could try using the address localhost:8888 or 0.0.0.0:8888. If for some reason that address doesn't work, check the output of the terminal. You'll have to input the jupyter token available in your terminal. In any browser, type in 127.0.0.1:8888 and you should get your notebook. This establishes a tunnel between port 8888 on your computer and the jupyter port on the compute node Visit the port in your local browser The default jupyter port number is 8888, but don't worry if its different. Replace the with the port the jupyter notebook started on after running the jupyter notebook -no-browser command in window T1. You can view the compute node in T1 prompt. Ssh -L 8888:127.0.0.1: Replace comet-14-01 with the name of the compute node. In the second terminal, call it T2, run the command When you connect your browser to the notebook service, this will channel all communications via the SSH connection, which is secure and encrypted. In the next command, you will create an ssh connection between your local host and the notebook port on the remote, interactive node. Note the value of the number returned by the command. You can also specify a port number if you wish using the -port 1234 option. The no browser option is required, otherwise the program may think you want a text representation of your outputs in the terminal, which trust me - you don't want. In T1, run the command jupyter notebook -no-browser Start a jupyter notebook server on the interactive node. Take note of the of the interactive node. You can use other queues, but you may have to wait longer. In T1, srun -partition=debug -pty -nodes=1 -ntasks-per-node=24 -t 00:30:00 -wait=0 -export=ALL /bin/bashįeel free to adjust the parameters, but remember that in the debug partition you can only claim a node for up to 30 minutes. ![]() In T1, ssh This is just a regular SSH login. We will use one terminal to start the notebook, and the other to establish the tunnel. Interactive Node Method Open two terminals on your computer This section shows you how to launch a Jupyter Notebook using an interactive node or on a compute node, and to use ssh tunneling to securely connect to the notebook server. Connection to Notebook over SSH tunneling (secure)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |