gpt4 book ai didi

python - 在 LAN 上暴露 python jupyter

转载 作者:IT老高 更新时间:2023-10-28 20:24:28 29 4
gpt4 key购买 nike

我已在本地网络 LAN 上安装了 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描述了公开暴露笔记本,但我只是尝试通过 LAN 共享。

我错过了一步吗?

最佳答案

试试 jupyter notebook --ip <your_LAN_ip> --port 8888然后访问http://your_LAN_ip:8888从另一台计算机。

建议您在访问笔记本服务器时使用密码。要设置密码,只需运行 jupyter notebook password .为了使其更加安全,您可以通过传递参数 --certfile 为您的服务器使用 SSL。和 --keyfilejupyter notebook .您可以阅读有关设置 here 的更多信息.

关于python - 在 LAN 上暴露 python jupyter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39155953/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com