Fixed a few things that would not work unless notebook was started with "ipython notebook --pylab inline".