- Machine Learning for OpenCV
- Michael Beyeler
- 160字
- 2021-07-02 19:47:18
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.
推薦閱讀
- Embedded Linux Projects Using Yocto Project Cookbook
- Python爬蟲(chóng)開(kāi)發(fā):從入門(mén)到實(shí)戰(zhàn)(微課版)
- 神經(jīng)網(wǎng)絡(luò)編程實(shí)戰(zhàn):Java語(yǔ)言實(shí)現(xiàn)(原書(shū)第2版)
- PostgreSQL 11從入門(mén)到精通(視頻教學(xué)版)
- MongoDB權(quán)威指南(第3版)
- RSpec Essentials
- 從零開(kāi)始學(xué)Linux編程
- ElasticSearch Cookbook(Second Edition)
- Swift 4從零到精通iOS開(kāi)發(fā)
- 軟件供應(yīng)鏈安全:源代碼缺陷實(shí)例剖析
- Spring MVC+MyBatis開(kāi)發(fā)從入門(mén)到項(xiàng)目實(shí)踐(超值版)
- BeagleBone Robotic Projects(Second Edition)
- Python函數(shù)式編程(第2版)
- Software Development on the SAP HANA Platform
- MySQL數(shù)據(jù)庫(kù)應(yīng)用實(shí)戰(zhàn)教程(慕課版)