美文网首页
远程访问服务器上的jupyter notebook

远程访问服务器上的jupyter notebook

作者: 菜鸟瞎编 | 来源:发表于2019-02-28 10:48 被阅读0次

1、设置服务端 jupyter notebook
设置 jupyter notebook 可远程访问

2、关闭服务器防火墙
CentOS 6和CentOS 7防火墙的关闭

或者只打开一个端口
sudo firewall-cmd --zone=public --list-all
firewall-cmd --get-active-zones
sudo firewall-cmd --zone=public --add-port=8000/tcp --permanent
sudo firewall-cmd --reload
sudo systemctl restart firewalld

3、jupyter notebook 使用虚拟环境
给jupyter notebook配置虚拟环境, 我这里虚拟环境的名字为py365
pip install ipykernel
python -m ipykernel install --name py365
报错:[Errno 13] Permission denied: '/usr/local/share/jupyter'
因为我的conda 是在自己目录下安装的,不是root安装的,这里默认是root的。加上 --user, python -m ipykernel install --name py365 --user
成功


image.png

Jupyter Notebook 增加kernel的方法
[Errno 13] Permission denied: '/usr/local/share/jupyter'

相关文章

网友评论

      本文标题:远程访问服务器上的jupyter notebook

      本文链接:https://www.haomeiwen.com/subject/zdfhuqtx.html