Jupyter

来源:互联网 发布:https 443端口 编辑:程序博客网 时间:2024/05/18 10:13
原来是ipyhon
最新Jupyter

官网:http://jupyter.org/

安装:http://jupyter.readthedocs.io/en/latest/install.html

安装说明: We recommend using the Anaconda distribution to install Python and Jupyter. 
官网中是推荐使用Anaconda来安装(当然,也提供了pip的安装方式)。这里也使用Anaconda来安装:
(1)下载Anaconda: https://www.continuum.io/downloads 找到相应的版本下载( linux 64 bit),
然后执行:
bash Anaconda2-4.1.1-Linux-x86_64.sh
就会进入安装模式,根据提示一步步进行安装(会让阅读license agreement,按回车一行行显示,按空格翻页)。
在安装过程中,可以看到Anaconda会默认将python,jupyter,matplotlib,scikit-learn,scipy等很多包安装上。
(2)安装Anaconda成功后(终端要重新启动),执行:
jupyter notebook
程序会启动,并且自动打开http://localhost:8888/tree 文件目录(默认端口8888)。
指定端口:jupyter notebook--port9999
更详细参考:http://jupyter.readthedocs.io/en/latest/running.html#running
说明:使用ipython可以直接执行:
ipython

使用:
进入到某个目录下,在右侧 New-->Python,即可打开 Ipython notebook,在目录下会生成.ipynb格式文件。

在这里就可以写一些code或者markdown,注意运行按钮是>|,markdown直接执行就会出现最终展示形式。







0 0
原创粉丝点击