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/03 12:26] – ↷ Page moved and renamed from minerva:jupyter to clusters:minerva:jupyter_2020 Steffen Grunewaldclusters: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 laptop, go 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) =====
Line 118: Line 120:
 It is possible to run a Jupyter server on Minerva, and to display the notebooks locally on your laptop/desktop.   It is possible to run a Jupyter server on Minerva, and to display the notebooks locally on your laptop/desktop.  
  
-First, make sure you have access to ''jupyter notebook'' on Minerva.  Harald followed [[minerva:lalsuite|Installing LALSuite on Minerva (the SPACK way)]] until he had a (personal) environment inside which he installed (his personal copy of) ''jupyter notebook'' via ''pip install'' Alternatively, Steffen says that ''spack'' also has a jupyter package, which may avoid the need to setup one's own environment and ''pip install'''s.+First, make sure you have access to ''jupyter notebook'' on Minerva.  Harald followed [[clusters:minerva:lalsuite_spack|Installing LALSuite on Minerva (the SPACK way)]] until he had a (personal) environment inside which he installed (his personal copy of) ''jupyter notebook'' via ''pip install'' Alternatively, Steffen says that ''spack'' also has a jupyter package, which may avoid the need to setup one's own environment and ''pip install'''s.
  
  
clusters/minerva/jupyter_2020.1627993567.txt.gz · Last modified: 2021/08/03 12:26 by Steffen Grunewald