I'm not on a notebook, I'm in a regular pylab ipython session. The problem is as follows:

If you leave it like this, 32 figures will open due to new plotting internals.

If I pass an axis to plot on, the single figure does not update at each iteration which means you loose the educational effect ...