Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
class:phy3026 [2019/09/16 14:19] – minerva1993 | class: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. | ||
< | < | ||
+ | ##DO THIS ONLY AT THE FIRST TIME## | ||
jupyter notebook --generate-config | jupyter notebook --generate-config | ||
vi / | vi / | ||
+ | ##DO THIS ONLY AT THE FIRST TIME## | ||
</ | </ | ||
Line 75: | Line 77: | ||
You can check your port number in '' | You can check your port number in '' | ||
< | < | ||
- | ssh -f -N -L localhost:TunnelPort:localhost:TunnelPort | + | ssh -f -N -L localhost:9XXX:localhost:9XXX YOURID@210.117.210.XX |
</ | </ | ||
- | Please don't confuse '' | ||
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. |