Use %pylab in first cell, as recommended by cerreau@IPythonTeam