shift+enter
to execute the cell!
to excute shell commands, try !ls
, !pwd
, !pip install ...
?
(e.g., ?numpy
, ?numpy.mean()
) for quick reference on syntaxpip install jupyterthemes
to install themesjt -l
to check the available themesjt -t <theme>
to set the themejt -r
back to the default themepip install jupyter_contrib_nbextensions
and then jupyter contrib nbextension install
RISE
pip install numpy
import numpy as np
ndarray
: the core of NumPy¶import numpy as np
data = np.array([1,2,3])
print(data)
[1 2 3]
(number of rows, number of columns)
¶data = np.array([[1,2],
[3,4],
[5,6]])
print(data)
[[1 2] [3 4] [5 6]]
data = np.array([[1,2,3],[4,5,6]], dtype='int16')
data.strides
(6, 2)