Jupyter notebooks 安装与使用
来源:互联网 发布:淘宝用户名起名大全 编辑:程序博客网 时间:2024/05/31 05:28
Jupyter installation
Reference: http://jupyter.readthedocs.org/en/latest/install.html
如果安装了anaconda,则可以使用如下操作安装:
conda update jupyter
如果没有,则使用pip安装:
pip install jupyter
配置后台进程服务
创建用户用作运行jupyter:
addusr ipython
编辑/etc/sudoers,并将其加入sudo用户组。
ipython ALL=(ALL) ALL
编辑/usr/lib/systemd/system/ipython-notebook.service,然后根据自己的要求进行配置,比如–ip=0.0.0.0表示允许外网访问:
[Unit]Description=IPython notebook[Service]Type=simplePIDFile=/var/run/ipython-notebook.pidExecStart=/usr/local/anaconda2/bin/jupyter notebook --ip=0.0.0.0 --no-browserUser=ipythonGroup=ipythonWorkingDirectory=/home/ipython/notebooks[Install]WantedBy=multi-user.target
然后重载deamon并运行服务:
systemctl daemon-reloadsystemctl enable ipython-notebooksystemctl start ipython-notebook
这样即在后台运行jupyter notebook服务了:
[root@centos7 ~]# netstat -antActive Internet connections (servers and established)Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:8787 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
打开防火墙
由于想使用外网接入,因此需要在iptables里面打开端口8888,否则便会connection refused:
iptables -A IN_public_allow -p tcp -m tcp --dport 8888 -m conntrack --ctstate NEW -j ACCEPT
验证安装
打开浏览器,输入ip:8888即可:
notebooks验证
然后new一个 notebook进行验证:
terminal验证
new 一个terminal 进行验证:
1 0
- Jupyter notebooks 安装与使用
- Python2.7中Pip --- IPython与IPython noteBooks(jupyter) 安装入门
- jupyter notebook的安装与使用
- jupyter notebook的安装与使用
- jupyter notebook的安装与使用
- jupyter notebook的安装与使用
- jupyter notebook的安装与使用
- jupyter notebook的安装与使用
- jupyter notebook的安装与使用
- jupyter安装与卸载
- jupyter安装与卸载
- jupyter的安装使用
- jupyter notebook 安装,使用
- jupyter与spark kernel结合的notebook安装及使用
- Jupyter Notebook(一)安装配置与使用
- 在Jupyter Notebooks里进行大数据分析,So easy!
- RUNNING JUPYTER NOTEBOOKS ON A REMOTE SERVER VIA SSH
- Jupyter notebook 安装,初步使用
- java二维码工具类,中间带LOGO的,很强大
- 英国监管机构向比特币抛出橄榄枝,管制环境更加宽松
- 关于Android内存泄漏的优秀文章
- H5页面快速搭建之高级字体应用实践
- poj 1579 递归-记忆化搜索
- Jupyter notebooks 安装与使用
- 比特币交易平台Kraken获得B轮融资
- java 集合类
- 1011 Oil Deposits
- HBase 默认配置
- Android杀死双进程应用
- jstl简单总结
- ArcGIS Runtime SDK for iOS(六) --- 空间几何分析与操作(中)
- Android API Guides---Searchable Configuration