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

Importing NumPy

Once you start a new IPython or Jupyter session, you can import the NumPy module and verify its version as follows:

In [1]: import numpy
In [2]: numpy.__version__
Out[2]: '1.11.3'
Recall that in the Jupyter Notebook you can hit Ctrl + Enter to execute a cell once you have typed the command. Alternatively, Shift + Enter executes the cell and automatically inserts or selects the cell below it. Check out all the keyboard shortcuts by clicking on Help > Keyboard Shortcut, or take a quick tour by clicking on Help > User Interface Tour.

For the pieces of the package discussed here, I would recommend using NumPy version 1.8 or later. By convention, you'll find that most people in the scientific Python world will import NumPy using np as an alias:

In [3]: import numpy as np
In [4]: np.__version__
Out[4]: '1.11.3'

Throughout this chapter, and the rest of the book, we will stick to the same convention.

主站蜘蛛池模板: 房产| 政和县| 南部县| 原阳县| 玉屏| 绵阳市| 寻甸| 屯留县| 太康县| 垫江县| 宜宾县| 佛学| 克什克腾旗| 江油市| 拉萨市| 本溪| 白河县| 南和县| 武功县| 蒲江县| 陆良县| 汉源县| 马山县| 喜德县| 桃源县| 杨浦区| 迁安市| 贵州省| 云南省| 海丰县| 登封市| 航空| 揭阳市| 长春市| 双柏县| 舒兰市| 东安县| 宽城| 光山县| 武隆县| 临夏县|