如何使用IPython
我无法理解 ipython 库。这个网址提供了共同的功能,但我无法将其核心关联起来。 http://ipython.org/ipython-doc/stable/interactive/tutorial。 html
如何使用 IPython 来改善日常 Python 应用程序体验?
I could not understand the ipython library. This url provide the common feature but I could not core-relate it. http://ipython.org/ipython-doc/stable/interactive/tutorial.html
How to I use IPython to improve my day to day python application experience?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ipython 是一个改进的交互式提示符,而不是一个库。它具有诸如制表符补全和配置文件之类的功能,这些功能在普通交互式提示符(在没有输入文件的情况下运行 python)中不存在。所有功能都列在您引用的页面上。
因此,它并没有真正改善您的日常 Python 应用程序体验(无论这意味着什么),但它确实在开发过程中提供了好处。
另外,还有一个替代方案,称为 bpython,它也有非常好的功能。
ipython is an improved interactive prompt, not a library. It has features like tab completion and profiles which are not present in the vanilla interactive prompt (which is running python without an input file). All features are listed on the page you cited.
So, it doesn't really improve your day to day python application experience (whatever that means), but it does provide benefits during development.
Also, there is an alternative, called bpython, it has quite great features, too.
你做科学计算吗? ipython 0.12 有一个名为 ipython Notebook 的新功能,它对于数据分析非常有用。您可以轻松地在浏览器中内联打印图形和数据并重新加载代码。然后您可以将其打印为 pdf 格式并制作一份精美的报告。
由于 ipython 的功能,它对于学习 python 也很有用。您可以快速测试并了解某些功能的运行方式。除了制表符补全之外,还有一些特别有用的功能
object??
为您提供有关对象的更多信息%history
为您提供所有先前命令的列表%debug< /code> 如果遇到错误,这会将您带入调试器,以便您可以快速调试
do you do any scientific computing? ipython 0.12 has new functionality called ipython notebook that's really useful for data analysis. you can easily print graphs and data inline in your browser and reload your code. You can then print it as a pdf and make a nice report.
it's also useful for learning python due to ipython's functionality. you can quickly test and understand how certain functions operate. A few particularly useful functionality aside from tab completion
object??
gives you more information about the object%history
gives you a list of all your previous commands%debug
if you hit an error, this will put you into the debugger so you can quickly debug