Running as root is not recommended. Use --allow-root to bypass解决方案
查看 jupyter notebook 的配置文件
jupyter notebook --generate-config --allow-root
Overwrite /root/.jupyter/jupyter_notebook_config.py with default config? [y/N]y Writing default config to: /root/.jupyter/jupyter_notebook_config.py
打开上述显示的配置文件
vim /root/.jupyter/jupyter_notebook_config.py
将文档中的该行注释符号取消,并修改成 True
# c.NotebookApp.allow_root = False
修改后的内容为:
c.NotebookApp.allow_root = True
注意保存,然后重新运行jupyter!!
jupyter notebook



