ipython/ipython — pull request #892 by minrk (2011-10-18 02:24:40+00:00)
Title: don't close figures every cycle with inline matplotlib backend

See #638

This allows `gcf()`, `getfigs()`, etc. to be useful again in the qtconsole and notebook.

`draw_if_interactive()` signals that the current figure is to be drawn.

Figures that are created and closed in the same cell will not be drawn.

I would like some testing of this, to see cases where it doesn't do as well as the current closing-everything model.