class:phy3026

This is an old revision of the document!


Prepare your computing environment

Install MobaXterm

https://mobaxterm.mobatek.net/download.html

Connect to server Ask to tutor to create accounts for students. Start local terminal in mobaxterm.

ssh -p PORT -X YOURID@210.117.210.IP

Jupyter notebook To write and excute python code in your local browser, you need to create ssh tunnel to server. First, make sure you are using unique port number for tunnel. Follow the lines in the server.

jupyter notebook --generate-config
vi /home/YOURID/.jupyter/jupyter_notebook_config.py

You can check your port number in c.NotebookApp.port = 8888. Now, create tunnel in your LOCAL terminal (not in server!).

ssh -p PORT -f -N -L localhost:TunnelPort:localhost:TunnelPort YOURID@210.117.210.XX

Please don't confuse PORT and TunnelPort!

Then you can excute jupyter in server.

jupyter-notebook --no-browser

The adress to jupyter notebook will appear in terminal. Copy & paste into local internet prowser.

  • class/phy3026.1534153310.txt.gz
  • Last modified: 2023/03/06 13:44
  • (external edit)