JupyterLab access alternative
We described as workaround access to JupyterLab via X11 forwarding. One user gave us an example how to access JupyterLab via port forwarding.
In one Terminal Window:
marie@local$
ssh -XC marie@login4.barnard.hpc.tu-dresden.de
marie@login4.barnard$
ml release/23.10 GCCcore/12.2.0
ml Python/3.10.8
source /software/util/JupyterLab/vis/jupyterlab-4.0.4/bin/activate
export SLURM_CONF=/software/util/dcv/etc/slurm/slurm.conf
srun --nodes=1 --ntasks=1 --cpus-per-task=4 --mem-per-cpu=8192 --x11 --pty bash -l
marie@vis1.barnard$ jupyter lab --no-browser
As the jupyter lab starts it will print something like
[C 2024-02-25 19:01:53.163 ServerApp]
Or copy and paste one of these URLs: http://localhost:8888/lab?token=d7759aea743fc848891bf2eb7e390f6d63be42fbbc92c859
To connect with our local web browser we need to forward a local port (e.g. 8888) to vis1.barnard.hpc.tu-dresden.de:8888
Therefore, in a second terminal window:
marie@local$ ssh marie@vis1.barnard.hpc.tu-dresden.de -L 8888:localhost:8888
Finally, open a local web browser and navigate to
http://localhost:8888/lab?token=d7759aea743fc848891bf2eb7e390f6d63be42fbbc92c859
Would be good to have both alternatives to JupyterHub.