- 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.
推薦閱讀
- Java Web開(kāi)發(fā)學(xué)習(xí)手冊(cè)
- Visual C++串口通信開(kāi)發(fā)入門(mén)與編程實(shí)踐
- Web開(kāi)發(fā)的貴族:ASP.NET 3.5+SQL Server 2008
- C語(yǔ)言程序設(shè)計(jì)
- Unity 5 for Android Essentials
- Elasticsearch Server(Third Edition)
- Azure Serverless Computing Cookbook
- Processing創(chuàng)意編程指南
- Learning Material Design
- 代替VBA!用Python輕松實(shí)現(xiàn)Excel編程
- 機(jī)器學(xué)習(xí)微積分一本通(Python版)
- Node.js區(qū)塊鏈開(kāi)發(fā)
- Python一行流:像專家一樣寫(xiě)代碼
- 黑莓(BlackBerry)開(kāi)發(fā)從入門(mén)到精通
- Drupal 8 Development Cookbook(Second Edition)