Linux启动jupyter报错Running as root is not recommended.

# jupyter notebook --h  看下help

这时我们可以生成一个jupyter配置文件

使用 jupyter notebook --generate-config 生成jupyter配置文件,

路径一般是~/.jupyter/jupyter_notebook_config.py

修改配置下文件

1、# vi ~/.jupyter/jupyter_notebook_config.py 

2、找到 #c.NotebookApp.allow_root = False ,去掉#,并修改为True, vi查找一下按下斜杠 ' / '

3、wq 保存退出

4、这里有个token等会要用

5、输入token,完成登录。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章