简体   繁体   English

Jupyter笔记本无法从Centos 7打开

[英]Jupyter notebook not opening from Centos 7

I have recently installed jupyter notebook on Centos 7. I have been trying to get it launched on my browser from past 2 days and have tried every answer on stack overflow. 我最近在Centos 7上安装了jupyter笔记本。我一直在尝试从过去2天开始在浏览器中启动它,并尝试过堆栈溢出的所有答案。 It stopped showing " No web browser found " when i type it on the command terminal. 当我在命令终端上键入它时,它停止显示“未找到Web浏览器”。 But when i copy and paste the link onto the google chrome browser it's showing, This site can't be reached. 但是,当我将链接复制并粘贴到显示的google chrome浏览器中时,无法访问此网站。 How will i resolve this issue? 我将如何解决此问题?

If you follow carefully the instructions on this post, you'll solve your problem. 如果您认真按照这篇文章上的说明进行操作,就可以解决您的问题。 I went through the same situation and followed these steps. 我经历了同样的情况,并遵循以下步骤。

https://techknight.eu/2016/01/03/setup-jupyter-notebook-centosrhel-7/ https://techknight.eu/2016/01/03/setup-jupyter-notebook-centosrhel-7/

The key is to : 关键是:

  • Modify the configuration .py file with your desired values (specially the IP on wich the notebook will run). 用所需的值修改配置.py文件(特别是笔记本将运行的IP)。
  • Allow the port you're gonna use throug the CentOS firewall 允许您通过CentOS防火墙使用的端口

In any case, if you break the configuration and you need a fresh start, you can always do: 无论如何,如果您破坏了配置并且需要重新开始,则始终可以执行以下操作:

jupyter notebook --generate-config

And the file will regenerate with default values. 并且文件将使用默认值重新生成。

Good Luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM