Python学习笔记4-本地浏览器登录远程服务器jupyter
2019-03-28 本文已影响0人
aLulujasmine
Step1.登陆服务器后,打开jupyter notebook或jupyter lab,使用默认端口,或者使用--port=port number指定一个端口,如图示(8899为例子,可自行指定任意端口)。
![](https://img.haomeiwen.com/i10283125/f9c8e9a0e93d0091.png)
Step2.本地打开一个终端,输入图示命令。其中8899为在服务器打开jupyter时指定的端口,port_number为登陆服务器的端口,一般默认为22,有的情况下会设置有不同的端口,user为自己在服务器的用户名,remote_server_ip为远程服务器的ip地址。
![](https://img.haomeiwen.com/i10283125/4d09ddd5bc8b32bd.png)
Step3.将服务器中打开jupyter notebook或jupyter lab后出现的带token的地址复制到本地浏览器里,就可以在本地浏览器使用远程服务器的jupyter了。
![](https://img.haomeiwen.com/i10283125/dc96483adcb2cfa5.png)