-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple.py.expected-out
52 lines (27 loc) · 2.26 KB
/
simple.py.expected-out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
╔══════════════════════════════════════════════════════════════════════════════╗
║ Sample Saturn Notebook ║
╚══════════════════════════════════════════════════════════════════════════════╝
Some test markup:
• item 1
• item 2
First, we import some necessary boilerplate.
>>> import sys, os
... import numpy as np
Fix seed for testing
>>> np.random.seed(42)
Set up the matrix a on which we operate.
>>> a = np.random.random((10,20))
We can examine a's shape:
>>> print(a.shape)
(10, 20)
>>> a.shape
(10, 20)
>>> ## Is this the best demarkation of the evaluated expression?
...
... b = 5
>>> print(b)
5
>>> import matplotlib.pyplot as plt
... plt.matshow(a)
... plt.show()
>>> # vim: ft=python foldmethod=marker foldlevel=0