ipython 和 bpython 之间有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4232923/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What are the differences between ipython and bpython?
提问by igorgue
What does ipythonhave that bpythonlacks and vice versa? How do the two differ?
缺少什么ipython,bpython反之亦然?两者有何不同?
采纳答案by Sven Marnach
If you just want an interactive interpreter, bpython should be fine. Just use it until you miss some feature you liked about IPython.
如果你只想要一个交互式解释器,bpython 应该没问题。只要使用它,直到您错过某些您喜欢 IPython 的功能。
There are lots of features that IPython offers over bpython:
IPython 在 bpython 上提供了许多功能:
Special threading options. I like
-gthreadfor experimenting with PyGTK and-pylabfor matplotlib.direct invocation of shell commands.
cdin IPython is quite useful.Full readline library support -- I can use the keyboard shortcuts I am used to.
Module reload facility - You can do a deep reload of a module after you have changed your code. This is very useful for testing and debugging.
Run functions in the background in a separate task with
%bg.A whole parallel programming environment (not really a feature you expect from an interactive Python shell, but IPython offers it).
特殊螺纹选项。我喜欢
-gthread试验 PyGTK 和-pylabmatplotlib。直接调用 shell 命令。
cd在 IPython 中非常有用。完整的 readline 库支持——我可以使用我习惯的键盘快捷键。
模块重载工具 - 您可以在更改代码后对模块进行深度重载。这对于测试和调试非常有用。
使用
%bg.在单独的任务中在后台运行函数。一个完整的并行编程环境(不是您期望从交互式 Python shell 中获得的真正功能,但 IPython 提供了它)。
This list could be nearly arbitrarily continued. And of course there will be lots of features in bpython lacking from IPython, but you did not ask for those.
这份清单几乎可以任意继续。当然,在 bpython 中会有很多 IPython 缺少的功能,但是您并没有要求这些功能。
So just use the one that works for you!
因此,只需使用适合您的那个!
回答by matlabdbuser
IPython Notebook(since 0.12) is a killer feature.
IPython Notebook(自 0.12 起)是一个杀手级功能。

