####################################
### Intro to Ipython Notebook ####
####################################
# We will use iPython notebooks to run all of our code!
# It's easy!
# Use Shift + Enter to run code and go to the next cell
x = 2 + 9
y = x - 4
print y
# when you hit shift enter, only this cell block will run
7
from matplotlib import pyplot as plt
%matplotlib inline
# We can use python built in graphical tool to make our own charts
import numpy as np #import NUMerical PYthon (numpy)
t = np.arange(0.0, 6.28, 0.1)
s = np.sin(t)
plt.plot(t, s)
plt.title("f(x) = sin(x)")
<matplotlib.text.Text at 0x10f65d650>