I'm using jupyter notebook. Consider ar = np.array([[2,3],[5,6]])
.
Then evaluating print ar
displays
[[2 3]
[5 6]]
while just evaluating ar
displays
array([[2, 3],
[5, 6]])
My question is: 1) What command lies actually behind this evaluation in the notebook, how could I reproduce it in a normal IDLE python script?
2) What does the second evaluation mean, which is some form of elaborate priting; does is show me the type of the object + its contents? Shouldn't it actually be ndarray
instead of array
?