jakevdp/ipywidgets — pull request #7 by justalfred (2014-05-07 19:50:01+00:00)
Title: swap the order of the display formatters

This addresses issue #6 which I also encountered. The problem was that (at least in my version of matplotlib - 1.4.x) `._repr_html_()` is valid for Figure objects, but returns `None`. If there was a reason for trying 'text/html' before 'image/png', then maybe we can just add a special condition to account for this in line 15.

Thanks for writing this package! I'm looking forward to using the heck out of it. I'm gracing it with my very first public PR, too. Also, we met very briefly at SciPy last year. I was working at bitly at the time, but I'd be surprised if you remember me.