WARNING: The notebook server is listening on all IP addresses and not using encryption--Jupyter解决方案(

Posted Z.Q.Feng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WARNING: The notebook server is listening on all IP addresses and not using encryption--Jupyter解决方案(相关的知识,希望对你有一定的参考价值。

项目场景:

最近在 Ubuntu20.04 上运行 Jupyter Notebook 时,总是会在终端中看到如下输出:

其中包含一条警告:

WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.

解决方案:

如果要停止运行时出现此类提示,可以在启动 jupyter 时指定要绑定的 IP

jupyter notebook --ip=x.x.x.x

xxxx 是你要绑定的IP,一个示例是 0.0.0.0

jupyter notebook --ip=0.0.0.0

更改后警告消失。


有帮助可以点赞哦,谢谢大家的支持~

以上是关于WARNING: The notebook server is listening on all IP addresses and not using encryption--Jupyter解决方案(的主要内容,如果未能解决你的问题,请参考以下文章