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

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.

主站蜘蛛池模板: 合作市| 勐海县| 泾川县| 平遥县| 灵寿县| 高淳县| 丽江市| 新野县| 乌审旗| 株洲市| 深泽县| 虎林市| 华安县| 高唐县| 荃湾区| 鄂托克前旗| 秦安县| 彰化市| 建德市| 确山县| 泽库县| 樟树市| 洛宁县| 白城市| 安达市| 上栗县| 新宁县| 淮阳县| 鱼台县| 平邑县| 全南县| 牙克石市| 襄城县| 习水县| 公主岭市| 平乐县| 雷波县| 随州市| 全椒县| 夹江县| 崇义县|