Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.25 KB

2020-05-29_远程使用Jupyter_Notebook.org

File metadata and controls

31 lines (25 loc) · 1.25 KB

使用本地浏览器打开远程服务器上的jupyter notebook

To make the connection faster, you can follow below instructions:

  • First, make sure you install Jupyter notebook in both remote (working station in your offcie) and local (your home computer)
  • In remote host, open the terminal, change directory to where you have your notebooks and type:
jupyter notebook --no-browser --port=8889# you should leave the this open
  • In your local computer, open MS-DOS cmd (if using Windows) or Unix terminal, then type:
# make sure to change `username` to your real username in remote host
# change `your_remote_host_name` to your address of your working station
# Example: ssh -N -f -L localhost:8888:localhost:8889 guest@192.168.0.132
ssh -N -f -L localhost:8888:localhost:8889 username@your_remote_host_name
  • Now open web browser (google chrome, firefox, …) and type: localhost:8888 you will see your notebooks in your given directory
  • If Token needed, go to remote server, type output of this command:
jupyter notebook list|tail -n 1|cut -d = -f 2|cut -d ' ' -f 1