ipython6.1.0安装

来源:互联网 发布:帝国年代2 java 编辑:程序博客网 时间:2024/06/05 04:33

一.IPython简介

IPython 是一个交互式的shell,比默认终端好用,支持自动缩进,Tab补全(ipython6.0以上版本),并且内置了很多有用的功能和函数。可以在任何操作系统上使用。

二.安装方法

1.pip 在线安装

pip3 install ipythonpip3 install "ipython[notebook]"

2.下载安装

可以到GitHub 下载安装包,切换到目录下然后运行下面的脚本:

python3 setup.py install

三.简单使用

打开Linux终端,在命令行中输入:

 ipython

便会进入ipython 的交互式shell,并会显示 ipython 的一些信息,在In [1]: 后面便可以输入python的代码。

Python 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:09:58) Type 'copyright', 'credits' or 'license' for more informationIPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.In [1]: print('hello ipython!'

自动补全代码功能体验,输入下列代码:

这里写图片描述

http://blog.csdn.net/qq_22512533/article/details/48225037

原创粉丝点击