Method 1:
- Terminal 1:
ssh <username>@xxxx.yyyy.zzzz.edu
- Get a interactive compute node
- conda create --prefix <path-to-environment/environment_name> python=XXXX
- conda activate <path-to-environment/environment_name>
- conda env update --file <environment.yml>
- ip=
echo $(/sbin/ip route get 8.8.8.1 | awk '{print $7;exit}')
alias launch_notebook='jupyter notebook --no-browser --ip="$ip"'
launch_notebook
Method 2: Port forward to localhost
(PPPP is the port number (may be 4232 or any other available port))
0. Terminal 0: Login to cluster (ssh <username>@xxxx.yyyy.zzzz.edu
) and request a compute node (sinteractive or batch job with sleep 24h
.
- Terminal 1:
ssh <username>@xxxx.yyyy.zzzz.edu -LPPPP:NODE:PPPP -N
- Terminal 0: On the compute node:
jupyter lab --ip=0.0.0.0 --port=PPPP
orjupyter notebook --ip=0.0.0.0 --port=PPPP