start:development:ides_and_editors:notebooks

Notebooks

Work In Progress

33%
33%
5%

Try out the following if you want to run a Jupyter Notebook on the MOGON 2 cluster, but want to run the browser locally.

Warning

Please note that we do not support the use of Jupyter Notebooks

Setup

  1. ssh -J <username>@hpcgate.zdv.uni-mainz.de <username>@miil03
  2. python3 -m venv testEnv
  3. source testEnv/bin/activate
  4. pip3 install jupyter
  5. Change config:
    1. jupyter notebook –generate-config
    2. Change directory to ~/.jupyter/jupyter_notebook_config.py:
      1. c.NotebookApp.allow_remote_access = True
      2. c.NotebookApp.ip = '*'
      3. c.NotebookApp.open_browser = False
      4. double check that these lines are not commented out.

Usage

  1. ssh -L 12345:localhost:8888 himster2
  2. source testEnv/bin/activate
  3. jupyter notebook
  4. Open locally: http://localhost:12345
    • Enter the code presented in terminal

Caution:

  • port 8888 might already be in use.
  • If port already in use, change config file and the port forward in SSH.

Warning

The following section was not provided by the MOGON HPC Group and has not been tested. Please use with caution

Usage

setup as shown above in section “Jupyter on head node with plain python”

  1. ssh <username>@miil03
  2. [pbotte@login23 ~]$ salloc -p himster2_exp -N 2 –time=01:00:00 -A m2_him_exp #change the partition and account accordingly
  3. [pbotte@login23 ~]$ ssh x0784 #log into the computer node you got assigned
  4. [pbotte@x0784 ~]$ source testjupyter/bin/activate
  5. (testjupyter) [pbotte@x0784 ~]$ jupyter notebook
  6. ssh -L 12346:x0784.mogon:8888 <username>@miil03
  7. Open locally: http://localhost:12346
    • Enter the code presented in terminal
  • start/development/ides_and_editors/notebooks.txt
  • Last modified: 2021/10/12 15:04
  • by pbotte