-
Notifications
You must be signed in to change notification settings - Fork 16
Using Jupyter Hubs or Notebooks on PPAN if user does not have access to GFDL public5 or 6
Yi-Cheng Teng - NOAA GFDL edited this page Nov 13, 2024
·
1 revision
It can be challenging if one doesn’t have access to either GFDL public5
or public6
. However, if one has access to the GFDL SSH Bastion, it is possible to configure an auto-proxy to enable browser access to GFDL’s internal web pages, allowing the user to utilize Jupyter Hubs or Notebooks on PPAN. Here’s how to set it up:
- Edit SSH Config for GFDL Bastion Access
Update your SSH configuration file to connect to the GFDL SSH bastion and log in using your RSA token. You can do this by adding the following lines to
~/.ssh/config
:
Host GFDL
HostName [ssh.gfdl.noaa.gov](http://ssh.gfdl.noaa.gov/)
User First.Last
LocalForward 3128 [mayflower.gfdl.noaa.gov:3128](http://mayflower.gfdl.noaa.gov:3128/)
GatewayPorts no
This will allow you login into GFDL via ssh with local port forwarding 3128:mayflower:3128
.
- Set Up Auto-Proxy in Browser
Configure your browser’s proxy settings with this auto-proxy URL:
http://www.gfdl.noaa.gov/www-proxy.pac
.
Follow this intruction to set up an auto-proxy in your browser. For example, on a Mac, you can enable Automatic Proxy Configuration
in Google Chrome and set the configuration file to http://www.gfdl.noaa.gov/www-proxy.pac
. Instructions for this setup can be found starting on page 3 of the provided guide.
- Login to Analysis and Launch Jupyter Notebook or Hubs
Log in to the GFDL PPAN, load the MED Python environment, and start a Jupyter Lab or Notebook session. Then open the URL that appears (choose the one in the format
http://an*.princeton.rdhpcs.noaa.gov:*
, rather than 127.0.0.1).
module load miniforge
conda activate /nbhome/role.medgrp/.conda/envs/medpy311
jhp launch notebook (or jhp launch lab)