首页 > 解决方案 > 是否可以登录在本地网络上运行的 jupyter 并使用其所有功能?

问题描述

是否可以运行安装在本地网络上不同机器上的 Jupyter 实验室或笔记本?类似 192.168.1.8:port_address

标签: pythonnetworkinglocalhostjupyter-lab

解决方案


是的,当然可以。使用以下命令启动 jupyter notebook:

jupyter notebook --ip <your_LAN_ip> --port 8888 

然后访问:

http://your_LAN_ip:8888 

从另一台计算机。您可以轻松地将端口号 8888 更改为您想要的任何数字,例如 6006。

建议您在访问笔记本服务器时使用密码。要设置密码,只需运行 jupyter notebook password。否则,有人可以访问您的笔记本。

这是设置笔记本密码的链接:https ://jupyter-notebook.readthedocs.io/en/latest/public_server.html#notebook-server-security


推荐阅读