我想jupyter notebook
在我可以ssh
访问的计算机上运行服务器,并且已经能够在本地运行笔记本计算机。
如何设置jupyter notebook
以便可以远程访问?
如果您具有ssh访问将运行服务器的计算机的权限,请执行以下步骤:
1)在将运行服务器的机器上,执行:
jupyter notebook # To start the server with the default port forwarding (8888)
2)记下笔记本地址:它将在终端上显示给您:http://localhost:8888/?token=<A_LONG_STRING_OF_NUMBERS_AND_LETTERS>
3)在客户端计算机上,可以远程访问服务器:
ssh -N -L localhost:8888:localhost:8888 <server_username>@<server_ip>
4)现在,打开浏览器以使用以下地址: http://localhost:8888/?token=<THE_TOKEN>
其他信息(在此处找到):可以更改设置服务器的端口
# In the server
jupyter notebook --no-browser --port=8889
# In the client
ssh -N -L localhost:8888:localhost:8889 <server_username>@<server_ip>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句