服务器jupyter连接不上主机

首先安装jupyter

pip3 install jupyter -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

然后生成默认配置

jupyter notebook --generate-config

执行jupyter --config-dir查看配置文件路径

然后进入到目录,cd /root/.jupyter编辑底下的文件

vi jupyter_notebook_config.py

在文件中加入:

然后打开jupyter,大功告成!

posted @ 2021-06-12 00:09  沐沐子枫  阅读(327)  评论(0编辑  收藏  举报