python - Python 和 IPython 有什么区别?

标签 python ipython

Python 和 IPython 之间到底有什么区别? ?

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

我知道 IPython 应该是 Python 的交互式 shell,但仅此而已吗?或者有没有一种叫做 IPython 的语言?如果我在 IPython 下写东西,它会在 Python 中运行吗,反之亦然?如果存在差异,我怎么知道它们是什么? Python 使用的所有包都可以在 IPython 中正常工作吗?

最佳答案

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

来自项目网站:

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

  • 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.

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

我建议阅读 IPython tutorial了解您在使用 IPython 时获得了哪些功能。

关于python - Python 和 IPython 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12370457/

相关文章:

python - 试图将经度/纬度转换为笛卡尔坐标

python - Django 中的中断迁移

r - Jupyter 可以从 Python 笔记本中运行单独的 R 笔记本吗?

cmake - undefined symbol : _ZN3a13A when importing pybind11 bindings

python - python 中 globals() 和 locals() 的奇怪行为

python - 用于开发环境的Docker设置?

python - Polars 根据计算添加列抛出 TypeError : 'Expr' object is not subscriptable

python - python 2.7 中没有名为 antlr4 的模块

ipython - 在jupyter笔记本中删除后释放内存

macos - 卸载 ipython mac os x