ipython/ipython — pull request #6612 by minrk (2014-10-03 21:56:58+00:00)
Title: only close all if there are any to close

avoids unnecessary gc on matplotlib < 1.4

closes #5795