`
stingh711
  • 浏览: 122132 次
  • 性别: Icon_minigender_1
  • 来自: 无锡
社区版块
存档分类
最新评论

IPython, an enhanced python "shell"

阅读更多
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

分享到:
评论

相关推荐

    python ipython pycharm安装教程

    Python 是一种广泛使用的高级编程语言,IPython 是一个交互式 shell,PyCharm 是一个集成了多种功能的集成开发环境(IDE)。以下是 Python IPython PyCharm 安装教程的详细知识点: 一、Python 安装 1. Python ...

    win10下安装ipython_基于python2.7.x及以上.pdf

    在Windows 10环境下安装IPython,特别是基于Python 2.7.x及以上版本,需要遵循一系列步骤,确保所有依赖项都被正确安装。本教程详细介绍了如何在Python环境中配置和安装必要的工具,包括`ez_setup.py`,`easy_...

    ipython和python区别详解

    IPython 是一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell命令,内置了许多很有用的功能和函数。 IPython 是基于BSD 开源的。 IPython 为交互式计算...

    Python库 | ipython-7.11.0-py3-none-any.whl

    资源分类:Python库 所属语言:Python 使用前提:需要解压 资源全名:ipython-7.11.0-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    在IPython中执行Python程序文件的示例

    简单使用了一下之后,我觉得如果有机会(公司里面编码是极不自由的,也无所谓,我在公司不做数据分析),我肯定是更喜欢使用IPython作为我的Python shell环境了。简单的接触发现了不少我喜欢的功能。其中,在这种...

    win 32位 安装 python2.7.3及Ipython

    接下来是"Ipython",它是一个交互式Python shell,提供了一种更强大的代码测试和调试环境。IPython不仅支持基本的Python命令,还具有自动补全、语法高亮、内建文档查看等功能。为了安装IPython,我们需要先安装一个...

    centos7下安装python3和ipython3

    ### CentOS 7 下 Python 3 和 IPython 3 的安装指南 #### 一、Python 3 的安装 在 CentOS 7 系统中,默认安装的是 Python 2.x 版本。为了满足更多开发需求,尤其是 Python 3.x 的功能与性能优势,我们需要在 ...

    ipython pdf

    IPython是一个增强型的Python交互式Shell,它为用户提供了一个高效且功能丰富的环境来进行代码开发、数据探索以及执行交互式计算任务。与标准Python解释器相比,IPython提供了一系列额外的功能来提升用户的体验。 #...

    ipython-1.2.1.tar.gz

    1. **增强的交互式Shell**:IPython的Shell提供了比标准Python Shell更多的功能,如自动补全、语法高亮、历史记录搜索、内建宏命令等,极大地提高了代码编写效率。 2. **富文本输出**:支持Markdown和LaTeX,使得...

    ipython手册

    IPython不仅是Python编程语言的一个交互式 shell,还是一个功能丰富的开发工具,广泛应用于科学计算、数据分析以及机器学习等领域。下面将详细阐述IPython的主要特点、功能及其在实际工作中的应用。 首先,IPython...

    Python库 | ipython-5.2.2-py3-none-any.whl

    IPython是Python编程语言中的一个强大且功能丰富的交互式环境,它在标准Python shell的基础上进行了大量的扩展和优化,为开发者提供了更为高效、易用的开发体验。本文将深入探讨IPython 5.2.2这一版本的核心特性及其...

    Python-ipythonpip支持用pip来安装IPythonnotebook的扩展

    在Python的生态系统中,IPython是一个强大的交互式计算环境,而Jupyter Notebook是IPython的一种扩展,它允许用户创建和共享包含代码、解释文本、图像和图表的文档。`ipython-pip`是一个工具,它使得能够使用Python...

    ipython-7.13.0.tar.gz

    IPython不仅仅是一个简单的Python shell替代品,它提供了一个功能强大的工作环境,包括增强的输入输出、语法高亮、自动补全、内建的文档查看和调试工具。这个7.13.0版本的发布,为用户带来了更稳定、更高效的功能,...

    Python3交互式shell ipython3安装及使用详解

    ### Python3交互式Shell IPython3安装及使用详解 #### 一、IPython简介 IPython(Interactive Python)是一款功能强大的交互式Python Shell,相比于Python自带的标准Shell,它提供了更多的便利性和灵活性。其中,...

    IPython功能丰富的工具非常有效的使用交互式Python

    IPython是Python编程环境中的一款强大且高效的交互式解释器,它极大地扩展了标准Python shell的功能,为开发者提供了更丰富的工具集。IPython的核心设计目标是提高程序员的工作效率,特别是对于科学计算、数据探索...

    Kali Linux安装ipython2 和 ipython3的方法

    1、更新包管理 apt-get install update. 2、安装 pip3 :apt-get install python3-...因为缺省情况下,pip3 安装的 ipython 也叫 ipython,最终导致 python2 的 ipython 无法进入启动。 4、安装python3的ipython:pip

    在IPython中进行Python程序执行时间的测量方法

    IPython作为一个增强的交互式Python shell,提供了方便快捷的工具来完成这项任务。本文将详细介绍如何在IPython中利用魔术函数`%time`和`%timeit`来测量Python程序的执行时间。 首先,我们有魔术函数`%time`,它...

Global site tag (gtag.js) - Google Analytics