Stream: python-questions

Topic: jupyterlab on Casper, no Hub


view this post on Zulip Matt Long (Feb 25 2020 at 17:18):

JupyterHub is down, but Casper is up. As a reminder, here are the steps to start a JLab session with SSH tunnels, presuming you have a conda environment setup.

1. ssh into casper

ssh -Y USERNAME@casper.ucar.edu

2. On casper, do this:

source activate base
jupyter lab --no-browser --ip=$(hostname)

3. On local machine (replace "casper01" with which ever host you are on)

ssh -N -L 8888:localhost:8888 casper01.ucar.edu

4. Navigate to http://localhost:8888 in your local browser.

view this post on Zulip Anderson Banihirwe (Feb 25 2020 at 17:24):

Reminder: It's likely that there will be more than one Jupyter Lab session on any given casper login node. So, to avoid port collision during Jupyter lab launch, you may end up getting another port other than 8888. Replace the 8888 with the assigned port: ssh -N -L ASSIGNED_PORT:localhost:8888 casper01.ucar.edu

view this post on Zulip Matt Long (Feb 25 2020 at 20:28):

Revision
3. On local machine (replace "casper01" with which ever host you are on)

ssh -N -L 8888:casper01:8888 casper01.ucar.edu

Last updated: Jan 30 2022 at 12:01 UTC