This will break on windows: it can't handle external references to a ``NamedTemporaryFile``.  Take a look at my recent push to IPython_display to see a work-around.