class:phy3026

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
class:phy3026 [2019/09/16 14:19] minerva1993class:phy3026 [2023/03/06 13:44] (current) – external edit 127.0.0.1
Line 64: Line 64:
 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. 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.
 <code> <code>
 +##DO THIS ONLY AT THE FIRST TIME##
 jupyter notebook --generate-config jupyter notebook --generate-config
 vi /home/YOURID/.jupyter/jupyter_notebook_config.py vi /home/YOURID/.jupyter/jupyter_notebook_config.py
 +##DO THIS ONLY AT THE FIRST TIME##
 </code> </code>
  
Line 75: Line 77:
 You can check your port number in ''c.NotebookApp.port = 8888''. Now, create tunnel in your ''LOCAL(in desktop)'' terminal (not in server!). You can check your port number in ''c.NotebookApp.port = 8888''. Now, create tunnel in your ''LOCAL(in desktop)'' terminal (not in server!).
 <code> <code>
-ssh -f -N -L localhost:TunnelPort:localhost:TunnelPort YOURID@210.117.210.XX+ssh -f -N -L localhost:9XXX:localhost:9XXX YOURID@210.117.210.XX
 </code> </code>
-Please don't confuse ''PORT (port to connect server when login)'' and ''TunnelPort (port to listen data from the server)''! 
  
 The address to jupyter notebook will appear in the terminal. Copy & paste into local internet browser. The address to jupyter notebook will appear in the terminal. Copy & paste into local internet browser.
  • class/phy3026.1568611156.txt.gz
  • Last modified: 2023/03/06 13:44
  • (external edit)