Python和IPython有什么区别? [英] What is the difference between Python and IPython?

查看:151
本文介绍了Python和IPython有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python与 IPython 有什么区别?

What exactly is the difference between Python and IPython?

如果我用Python编写代码,它会在IPython中运行还是需要修改?

If I write code in Python, will it run in IPython as is or does it need to be modified?

我知道IPython应该是是一个Python的交互式shell,但这就是全部吗?还是有一种叫做IPython的语言?如果我在IPython下写一些东西,它会在Python中运行,反之亦然吗?如果有差异,我怎么知道它们是什么? Python使用的所有包都将在IPython中工作吗?

I know IPython is supposed to be an interactive shell for Python, but is that all? Or is there a language called IPython? If I write something under IPython, will it run in Python, and vice-versa? If there are differences, how do I know what they are? Will all packages used by Python work as is in IPython?

推荐答案

ipython 是一个用python构建的交互式shell。

ipython is an interactive shell built with python.

来自项目网站:


IPython提供了一个丰富的工具包,可以帮助您充分利用Python,包括:

IPython provides a rich toolkit to help you make the most out of using Python, with:


  • 强大的Python shell(终端和基于Qt的)。

  • 基于Web的笔记本,具有相同的核心功能,但支持代码,文本,数学表达式,内联图和其他富媒体。

  • 支持交互式数据可视化和GUI工具包的使用。

  • 灵活,可嵌入的解释器加载到您的自己的项目。

  • 易于使用的高性能并行计算工具。

  • Powerful Python shells (terminal and Qt-based).
  • A web-based notebook with the same core features but support for code, text, mathematical expressions, inline plots and other rich media.
  • Support for interactive data visualization and use of GUI toolkits.
  • Flexible, embeddable interpreters to load into your own projects.
  • Easy to use, high performance tools for parallel computing.

请注意,前两行告诉您它可以帮助您充分利用Python。因此,您不需要更改代码,IPython shell就像普通的python shell一样运行您的python代码,只有更多的功能。

Note that the first 2 lines tell you it helps you make the most of using Python. Thus, you don't need to alter your code, the IPython shell runs your python code just like the normal python shell does, only with more features.

我建议阅读 IPython教程,让您了解使用IPython时获得的功能。

I recommend reading the IPython tutorial to get a sense of what features you gain when using IPython.

这篇关于Python和IPython有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆