Versions Compared

Key

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

After running jupyter.ini.sh command as abovedescribed in other sections, a file called client_cmd will be produced in the ${PBS$PBS_O_WIRKDIR} directory. It contains 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. The last line of the file is an url to be copied and pasted into your client machine web browser to access Gadi JupyterLab 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.

Job with token access to Gadi JupyterLab (

...

i.e. after running "jupyter.ini.sh -J -T

...

" ).

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 Jupyter Lab server.
http://127.0.0.1:8676/lab?token=44c79c8a8ac2d5d5238f69508a3d4fa9350c325a615f7abf # url link with token access to the remote Jupyter Lab server.

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

"jupyter.ini.sh -J -T -R").

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 Jupyter Lab server.
http://127.0.0.1:8676/lab?token=44c79c8a8ac2d5d5238f69508a3d4fa9350c325a615f7abf # url link with token access to remote Jupyter Lab server.

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 Jupyter Lab server.
http://127.0.0.1:8676/lab # Url link to access the remote Jupyter Lab server. You may need the password to login.

Job without token access to Gadi JupyterLab session together with a pre-defined Dask/Ray cluster

...

. (i.e. after running "jupyter.ini.sh -J -D"  or "jupyter.ini.sh -J -R")

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 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 Jupyter Lab server.
http://127.0.0.1:8676/lab # Url link to access the remote Jupyter Lab server. You may need the password to login.

Whenever you set up a Dask cluster, a file called scheduler.json will be produced. It contains the information for the Dask scheduler. The file should be kept existing during the job running time.

 Connect Gadi JupyterLab session from your client machine

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

  1. Run those ssh each SSH port forwarding commands presented in 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. Fetch Copy the last line of client_cmd file and type it in a web browser of your client machine. Then you will access the , 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, instructions on how to do this can be found here. Alternatively, you should enter your Gadi password when prompted.