User Tools

Site Tools


clusters:minerva:jupyter_2020

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
clusters:minerva:jupyter_2020 [2021/08/11 07:40] – ↷ Links adapted because of a move operation Harald Pfeifferclusters:minerva:jupyter_2020 [2021/08/11 07:49] (current) – [To actually use jupyter] Harald Pfeiffer
Line 42: Line 42:
 === To actually use jupyter ===  === To actually use jupyter === 
  
-Repeat these steps: +First, inside a minerva terminal, launch the jupyter server, and keep it running: 
-  * In *one* terminal, lauch the jupyter server on minerva, and keep it running: +
  
-  ssh minerva01 +   ssh minerva01 
-  module purge; . /home/SPACK2019/share/spack/setup-env.sh; spack load libpng +   source python37_venv/bin/activate 
-  source python37_venv/bin/activate +   jupyter lab --no-browser --port xxxx   # <-- prints connection info 
-  jupyter lab --no-browser --port xxxx +Ideally, you launch `jupyter` inside a `screen` session, which you keep running indefinitely, independent of disconnections.
-  +
 Starting the jupyter server will print some text with info how to connect.  You will need this text soon.  Starting the jupyter server will print some text with info how to connect.  You will need this text soon. 
  
-  * In *another* terminal, activate the ssh-tunnel with port-forwarding:  ''ssh minerva01_jupyter'' Leave this connection open+Secondin activate the ssh-tunnel with port-forwarding by ssh-ing into the 'tunneledconnection: 
-  * In a web-browser on your laptopgo to the web-page mentioned in the first bullet. +  ssh minerva01_jupyter   
 +Leave this connection open, while you're working in Jupyter,
  
 +Finally, in your local web-browser on your laptop, go to the web-page mentioned in the first bullet, i.e. something like `http://localhost:xxxx/lab?token=279f72788d79160801ab9cd2d9485e3d073bc05a78db9e37`
 +
 +where the 'xxxx' is the port-number you have chosen.
  
 ====== Running Jupyter on Minerva (2019) ===== ====== Running Jupyter on Minerva (2019) =====
clusters/minerva/jupyter_2020.1628667644.txt.gz · Last modified: 2021/08/11 07:40 by Harald Pfeiffer