One of the most important improvisations of Python that are my favorites are IPython and IPython Notebook.
I was watching and repeating what's shown in this video and found some issues.
As specified in the video, I use
ipython notebook --pylab
This is what the
pylab flag does:
import numpy import matplotlib from matplotlib import pylab, mlab, pyplot np = numpy plt = pyplot from IPython.core.pylabtools import figsize, getfigs from pylab import * from numpy import *
That said, it is recommended that you launch the notebook without the flag (just
ipython notebook) and then run:
For more details see No Pylab Thanks.
Regarding your scatter problem, you should try the following:
%matplotlib inline import matplotlib.pyplot as plt plt.scatter([1,2], [1,2])