美文网首页
4.安装ipython和jupyter

4.安装ipython和jupyter

作者: 不安分的情绪 | 来源:发表于2018-01-22 17:39 被阅读0次

ipython是python交互shell的增强工具。

1.安装ipython

[root@centos7 ~]# pyenv  local 3.5.2 
[root@centos7 ~]# python -V
Python 3.5.2
[root@centos7 ~]# pip install ipython

ipython的版本跟python环境有关。

IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2. When using Python 2.7, please install IPython 5.x LTS Long Term Support version. Beginning with IPython 6.0, Python 3.3 and above is required

[root@centos7 ~]# ipython -V
6.2.1

2.安装jupyter

[root@centos7 ~]# pip install jupyter

3.启动jupyther

[root@centos7 ~]# jupyter notebook   --allow-root  --no-browser --ip=0.0.0.0
[I 17:31:27.162 NotebookApp] Serving notebooks from local directory: /root
[I 17:31:27.162 NotebookApp] 0 active kernels
[I 17:31:27.162 NotebookApp] The Jupyter Notebook is running at:
[I 17:31:27.162 NotebookApp] http://0.0.0.0:8888/?token=7e895ee5d992ff27fd2d4d46b52170af300e1603a1f373bd
[I 17:31:27.162 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:31:27.163 NotebookApp] 
    
    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://0.0.0.0:8888/?token=7e895ee5d992ff27fd2d4d46b52170af300e1603a1f373bd//使用此tokcen在web页面上登陆

4.登陆web页面

访问:http://ip:8888

image.png

相关文章

网友评论

      本文标题:4.安装ipython和jupyter

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