In [3]:
from matplotlib.pyplot import plot
plot([1,3,2,5])


Out[3]:
[<matplotlib.lines.Line2D at 0x1100ca850>]

In [3]:
2+22


Out[3]:
24

In [5]:
def initialize(context):
    context.aapl = sid(24)

def handle_data(context, data):
    print context.aapl

In [ ]:
from matplotlib.pyplot import plot
plot([258.1,257.1,256.6,257.7,257.6,254.3,251.8,252.6])

The pylab magic was removed when they transitioned from IPython to a more general Jupyter notebook.

Try: %matplotlib inline when you get a message like:"matplotlib.axes._subplots.AxesSubplot at 0xebf8b70".

That's just IPython displaying the object. You need to specify IPython display it. Hence the matplotlib inline magic.