官术网_书友最值得收藏!

IPython

IPython is an alternate shell for interactively working with Python. It provides several enhancements to the default REPL provided by Python.

If you want to learn about IPython in more detail, check out the documentation at  https://ipython.org/ipython-doc/3/interactive/tutorial.html

To start IPython, simply execute the ipython command from the command line/Terminal. When started you will see something like the following:

The input prompt shows In [1]:. Each time you enter a statement in the IPython REPL, the number in the prompt will increase.

Likewise, output from any particular entry you make will be prefaced with Out [x]:, where x matches the number of the corresponding In [x]:. The following screenshot demonstrates this:

This numbering of in and out statements will be important to the examples as all examples will be prefaced with In [x]: and Out [x]: so that you can follow along.

Note that these numbers are purely sequential. If you are following through the code in the text and errors occur in the input or you enter additional statements, the numbering may get out of sequence (they can be reset by exiting and restarting IPython). Please use them purely as reference.

主站蜘蛛池模板: 安陆市| 夏津县| 大英县| 武威市| 彭山县| 县级市| 田阳县| 如东县| 扎赉特旗| 金沙县| 茶陵县| 五原县| 南澳县| 靖边县| 鹤岗市| 铜山县| 定远县| 开远市| 肃宁县| 莲花县| 承德县| 昭觉县| 昔阳县| 宜章县| 汤阴县| 额济纳旗| 崇义县| 陆川县| 霞浦县| 灌云县| 鄯善县| 谷城县| 吉林省| 盐源县| 兴山县| 湖北省| 集贤县| 通辽市| 两当县| 吉安市| 郁南县|