Start by importing numpy and matplotlib. You can view visualizations within an IPython Notebook using the %matplotlib inline command:
import numpy as np import matplotlib.pyplot as plt %matplotlib inline