rewriting to not use ipython notebook --pylab=line