我已经在局域网上安装了jupyter,但我无法从局域网上的另一台机器访问http://<IP>:8888。我已经用iptables打开了端口8888和端口范围49152到65535 (这个范围在http://jupyter-notebook.readthedocs.io/en/latest/public_server.html中指定)
本指南http://jupyter-notebook.readthedocs.io/en/latest/public_server.html描述了公开展示笔记本电脑,但我只是尝试在局域网上分享。
我是不是走错了一步?
发布于 2016-08-26 07:00:27
尝试jupyter notebook --ip <your_LAN_ip> --port 8888,然后从另一台计算机访问http://your_LAN_ip:8888。
建议您在访问笔记本服务器时使用密码。要设置密码,只需运行jupyter notebook password即可。为了使其更加安全,您可以通过将参数--certfile和--keyfile传递给jupyter notebook来对您的服务器使用SSL。你可以阅读更多关于设置here的信息。
发布于 2018-11-29 14:10:42
在macOS中,以下方法适用于我
0。使用以下命令生成配置文件
jupyter notebook --generate-config
1.在配置文件中设置并添加
c.NotebookApp.ip = '0.0.0.0' # listen on all IPs
c.NotebookApp.token = '' # disable authentication
c.NotebookApp.allow_origin = '*' # allow access from anywhere
c.NotebookApp.disable_check_xsrf = True # allow cross-site requests2.运行:
jupyter notebook --ip <your_LAN_ip> --port 8888发布于 2017-05-05 21:42:06
还可以在配置文件的c.NotebookApp.ip = '<your_ip_or_hostname>'和c.NotebookApp.port = 8888参数中添加IP/主机。
如果您还没有jupyter配置文件,那么运行jupyter notebook --generate-config
https://stackoverflow.com/questions/39155953
复制相似问题