Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
start:software:topical:physics:jupyter [2021/10/11 21:33] – [Usage] pbotte | start:software:topical:physics:jupyter [2021/10/12 11:28] (current) – moved to development/ides_and_editors/notebooks jrutte02 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Jupyter Notebooks on Mogon / Himster ====== | ||
- | Try out the following if you want to run Jupyter on our cluster but run the browser locally. | ||
- | |||
- | |||
- | ===== Jupyter on head node with plain python ===== | ||
- | |||
- | ==== Setup ==== | ||
- | |||
- | - ssh mogon2 | ||
- | - [pbotte@login23 ~]$ python3 -m venv testjupyter | ||
- | - [pbotte@login23 ~]$ source testjupyter/ | ||
- | - [pbotte@login23 ~]$ pip3 install jupyter | ||
- | - Change config: | ||
- | - [pbotte@login23 ~]$ jupyter notebook --generate-config | ||
- | - change in ~/ | ||
- | - c.NotebookApp.allow_remote_access = True | ||
- | - c.NotebookApp.ip = ' | ||
- | - c.NotebookApp.open_browser = False | ||
- | - double check that these lines are not commented out! | ||
- | |||
- | ==== Usage ==== | ||
- | |||
- | - ssh -L 12345: | ||
- | - [pbotte@login23 ~]$ source testjupyter/ | ||
- | - (testjupyter) [pbotte@login23 ~]$ jupyter notebook | ||
- | - Open locally: http:// | ||
- | * Enter the code presented in terminal | ||
- | |||
- | Caution: | ||
- | * others might already use port 8888. | ||
- | * If port already in use, change config file and the port forward in SSH. | ||
- | |||
- | |||
- | |||
- | ===== Jupyter on compute node with plain python ===== | ||
- | |||
- | ==== Usage ==== | ||
- | |||
- | setup as shown above in section " | ||
- | |||
- | - ssh himster2 | ||
- | - [pbotte@login23 ~]$ salloc -p himster2_exp -N 2 --time=01: | ||
- | - [pbotte@login23 ~]$ ssh x0784 #log into the computer node you got assigned | ||
- | - [pbotte@x0784 ~]$ source testjupyter/ | ||
- | - (testjupyter) [pbotte@x0784 ~]$ jupyter notebook | ||
- | - ssh -L 12346: | ||
- | - Open locally: http:// | ||
- | * Enter the code presented in terminal |