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

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.

主站蜘蛛池模板: 尼木县| 海城市| 锦屏县| 平利县| 金昌市| 静海县| 墨玉县| 都江堰市| 牙克石市| 桃江县| 香格里拉县| 浮梁县| 拉孜县| 当涂县| 文成县| 博乐市| 哈尔滨市| 那坡县| 若羌县| 德惠市| 伊吾县| 武川县| 策勒县| 永昌县| 崇州市| 新昌县| 南乐县| 博爱县| 福清市| 阳春市| 扶沟县| 秦皇岛市| 务川| 仙游县| 岳普湖县| 雅江县| 宿松县| 巴彦县| 科技| 宁南县| 南宫市|