As the definition on the Internet, IPython is an enhanced interactive Python shell. It has a lot of attractive features over the original Python shell. I take a quick look at them, and list my favorites.
- Auto completion with "Tab". For example, s is a string, if you press "Tab" after "s.", all methods of Python string will be listed, just like the auto completion in my konsole.
- Auto indent.
- IPython will add parentheses to functions and methods. For example, dir '' is the same with dir('')
- Magic commands. Common used shell commands are also available in IPython shell, such as "cd", "ls", "mkdir". Another two magic commands are very useful. The first one is "edit". In IPython shell, command "edit xxx" will invoke vim to edit the xxx file. (Vim is the default editor and emacs is supported too.) Another useful command is run. You can use command "run xxx.py" to run xxx. There are lots of other magic commands that I haven't tested. You can use command "lsmagic" to list them.
- Dynamic object information. Type "?word" and "??word" prints detailed information about an object.
- System shell access. Any shell commands can be used in IPython by add "!" in the front. For example, "!ifconfig" will pass "ifconfig" to the shell directly.
There are many other features like "session logging and restoreing", "Input and output caching" that I haven't tested yet.
If you are learning Python, I strongly recommend it to you.
Let's
try it together!
Blogged with Flock
Tags: python
分享到:
相关推荐
win10下安装ipython_基于python2.7.x及以上.pdf
IPython 是一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell命令,内置了许多很有用的功能和函数。 IPython 是基于BSD 开源的。 IPython 为交互式计算...
资源分类:Python库 所属语言:Python 使用前提:需要解压 资源全名:ipython-7.11.0-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
简单使用了一下之后,我觉得如果有机会(公司里面编码是极不自由的,也无所谓,我在公司不做数据分析),我肯定是更喜欢使用IPython作为我的Python shell环境了。简单的接触发现了不少我喜欢的功能。其中,在这种...
IPython中包括各种组件,其中的两个主要组件是: 基于终端方式和基于Qt的交互式Python shell 支持多媒体和绘图功能的基于Web的notebook(版本号为0.12以上的IPython支持此功能) 与IPython兼容的Python版本是2.5 、...
python ipython pycharm安装教程
今天小编就为大家分享一篇在IPython中进行Python程序执行时间的测量方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
IPython 是一个 python 的 交互式 shell,比默认的 python shell 好用得多 支持自动补全 自动缩进 支持 bash shell 命令 内置了许多很有用的功能和函数 IPython 是基于 BSD 开源的 版本 Python 2.x 使用的解释...
ipython for the Python 。 It is on the unix or linux. So you can make it to work for you!
1、更新包管理 apt-get install update. 2、安装 pip3 :apt-get install python3-...因为缺省情况下,pip3 安装的 ipython 也叫 ipython,最终导致 python2 的 ipython 无法进入启动。 4、安装python3的ipython:pip
ipython-pip-支持用 pip 来安装 IPython notebook 的扩展
使用 IPython Notebook 在 Python 环境中完全编写的 GEANT4 Linac。 可以在运行 GEANT4 代码的 IPython Notebook 示例。 请注意,下面概述的方法可能会使用超过 2 GB 的数据和大约 1-2 小时的计算机时间。 如果您...
IPython 是一个交互式的shell,比默认终端好用,支持自动缩进,并且内置了很多有用的功能和函数。可以在任何操作系统上使用。 二.安装方法 1.pip 在线安装 pip install ipython pip install “ipython[notebook]” ...
Mastering IPython 4.0. Python latest edition book.
详细记录了在centos7下如何用安装python3和ipython3的过程,简单实用,傻瓜式操作,期间遇到的所有问题都给出明确的解决办法。复制代码,黏贴运行即可。为新手在centos7环境下配置python学习环境提供帮助。
With its widely acclaimed web-based notebook, IPython is today an ideal gateway to data analysis and numerical computing in Python. IPython Interactive Computing and Visualization Cookbook contains ...
IPython是Python的交互式Shell,提供了代码自动补完,自动缩进,高亮显示,执行Shell命令等非常有用的特性。特别是它的代码补完功能,例如:在输入zlib.之后按下Tab键,IPython会列出zlib模块下所有的属性、方法和类...
一个关于深度学习的IPython Notebook教程,重点是自然语言处理