In [1]:
## __init__
a = 5
print('I am inside loaded_notebook!')
In [ ]:
print((3, a))
print((lambda: (4, a))())
In [2]:
## create_b
b = 10
In [3]:
## add_one
a += 1
In [4]:
##block __init__
import numpy as np
import matplotlib.pyplot as plt
In [5]:
print('in __init__')
In [6]:
cycles = 1
n = 50
In [7]:
##lastblock
print('I should still be in __init__')
In [8]:
## raises_exception __skip__
raise Exception('This cell should be skipped.')
In [9]:
print('Ran Data (heading 1)')
In [10]:
x = np.arange(n)
x
Out[10]:
In [11]:
print('Ran Data 1 (heading 2)')
In [12]:
y = np.sin(cycles * 2 * np.pi * np.arange(n) / n)
y
Out[12]:
In [13]:
print('Ran Data 2 (heading 2)')
In [14]:
print('Ran Plot 1 (heading 2)')
In [15]:
plt.plot(x, label='plot 1');
In [16]:
print('Ran Plot 2 (heading 2)')
In [17]:
cycles
Out[17]:
In [18]:
plt.plot(y, label='plot 2')
plt.title('adfasdff')
plt.legend();
In [ ]:
In [ ]:
In [ ]: