Listing6. IPython running in doctest mode.
清单6.以doctest模式运行ipython。
IPython has an incredible feature that lets you run snippets of Python code as background processes.
IPython具有一个令人难以置信的特性,即允许您将Python代码片段作为后台进程来运行。
You can test that you have version 0.5.x by issuing this command in the IPython, or regular Python, interpreter.
您可以测试自己的版本是否为 0.5.x,方法是在IPython或普通Python解释器中发起以下命令。
Executing and running the module in IPython literally runs through the code and puts it into the IPython environment.
执行和运行IPython中的模块,这就相当于运行其中的代码,并将其放入到IPython环境中。
You need to add a flag to run run -e so that you can avoid getting a traceback to the unittest module in the IPython shell.
您需要添加一个标记以运行 run-e,这样一来,您就可以在IPython Shell 中避免回溯到单元测试模块。
Agile techniques: IPython is an incredibly sophisticated and powerful tool for systems administrators and software engineers.
灵活的技术:对于系统管理员和软件工程师来说,IPython是一种非常成熟、并且功能非常强大的工具。
Other options for installation include, using your favorite package management system, or just downloading IPython and typing.
其他可选的安装方式包括,使用您最喜欢的包管理系统、或者只需下载IPython并键入以下命令。
By using IPython, it is now possible to combine the best features of a Python shell, UNIX shell, and your favorite text editor.
现在通过使用IPython,可以将PythonShell、UNIX Shell和您最喜欢的文本编辑器的最佳特性组合到一起。
IPython is a "comprehensive environment for interactive and exploratory computing" with a heavy emphasis on parallel programming.
IPython是“用于交互及探索计算最全面的环境”,它非常强调并行编程。
IPython also works quite well with any programming style, including Test Driven Development (TDD) or Test Enhanced Development (TED).
IPython可以与任何编程风格很好地融合在一起,包括测试驱动的开发(TDD)或者测试增强的开发(TED)。
In this article, you've learned how using Net-SNMP and IPython together can be a powerful combination. The following main concepts were covered.
在本文中,您已经了解了协同使用Net - SNMP和IPython将成为一种功能强大的组合。
When interacting with something as complex as a library for SNMP, you need all the help you can muster and, in this case, it really shows the power of IPython.
在与像snmp库这样非常复杂的对象进行交互时,您需要使用可以获得的所有帮助,而在这个示例中,真正地展示了IPython的强大功能。
When you save this file, IPython automatically runs it and places the class inside the module in your environment. If you type in who, you will see something like
当保存这个文件时,IPython将自动地运行它,并将该类放置到您环境中相应的模块中。
When you save this file, IPython automatically runs it and places the class inside the module in your environment. If you type in who, you will see something like
当保存这个文件时,IPython将自动地运行它,并将该类放置到您环境中相应的模块中。
应用推荐