Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After running jupyter.ini.sh command as described in other sections, a file called client_cmd will be produced in the $PBS_O_WIRKDIRWORKDIR directory. It contains commands to forward network traffic from the defined port number of the Gadi worker node to an external client machine (i.e., your desktop or VDI) via the Gadi login node gadi.nci.org.au. You should run these commands in your client machine or a OOD VDI session.

Client_cmd file

The contents of client_cmd file may vary on the way to access the Jupyterlab session and whether a pre-defined Dask/Ray cluster is set up when you run jupyter.ini.sh script with different flags.

...

ssh -N -L 8676:gadi-cpu-clx-2310.gadi.nci.org.au:8676 jpf777@gadi.nci.org.au     # ssh port forwarding command towards the remote JupyterJupyterLab Lab serversession.
http://127.0.0.1:8676/lab?token=44c79c8a8ac2d5d5238f69508a3d4fa9350c325a615f7abf # url link with token access to the remote JupyterJupyterLab Lab serversession.

Job with token access to Gadi JupyterLab session together with a pre-defined Dask/Ray cluster ( i.e. after running "jupyter.ini.sh -J -T -D"  or

...

ssh -N -L 8828:gadi-cpu-clx-2310.gadi.nci.org.au:8828 jpf777@gadi.nci.org.au     # ssh port forwarding command towards the Dask/Ray dashboard.
ssh -N -L 8676:gadi-cpu-clx-2310.gadi.nci.org.au:8676 jpf777@gadi.nci.org.au # ssh port forwarding command towards the remote JupyterJupyterLab Lab serversession.
http://127.0.0.1:8676/lab?token=44c79c8a8ac2d5d5238f69508a3d4fa9350c325a615f7abf # url link with token access to remote JupyterJupyterLab Lab serversession.

Job without token access to Gadi JupyterLab session ( i.e. after running "jupyter.ini.sh -J" ).

ssh -N -L 8676:gadi-cpu-clx-2310.gadi.nci.org.au:8676 jpf777@gadi.nci.org.au  # ssh port forwarding command towards the remote JupyterJupyterLab Lab serversession.
http://127.0.0.1:8676/lab # Url link to access the remote Jupyter Lab server. You may need the password to login.

...

ssh -N -L 8828:gadi-cpu-clx-2310.gadi.nci.org.au:8828 jpf777@gadi.nci.org.au   # ssh port forwarding command towards the Dask/Ray dashboard.
ssh -N -L 8676:gadi-cpu-clx-2310.gadi.nci.org.au:8676 jpf777@gadi.nci.org.au # ssh port forwarding command towards the remote JupyterJupyterLab Lab serversession.
http://127.0.0.1:8676/lab # Url link to access the remote Jupyter Lab server. You may need the password to login.

...

Now you can connect to the Gadi Jupyterlab session from your own client machine or a VDI session

  1. Run each SSH port forwarding commands command except for the bottom line of the file "client_cmd" in a seperate command line terminal of your client computer and keep them alive.
  2. Copy the last line of client_cmd file, which is the JupyterLab url, into your client machine web browser to access Gadi JupyterLab session.

Note: If you haven’t set up SSH keys on your client machine to enable the non-password SSH login to Gadi, instructions on how to do this can be found here. Alternatively, you should enter your Gadi password when prompted.