[IPython-dev] Extensible pretty-printing

Fernando Perez fperez.net@gmail....
Thu Oct 28 21:46:25 CDT 2010


On Thu, Oct 28, 2010 at 7:38 PM, Robert Kern <robert.kern@gmail.com> wrote:
> I guess you could use MIME types for the ones that make sense to do so. However,
> it would be nice to have an 'image' type that didn't really care about whether
> it was PNG or JPEG. There's no reason a frontend should have to look for every
> image/<format> MIME type that PIL can handle. We'd never actually *use* the MIME
> library anywhere. We'd treat the MIME types just like our own identifiers anyways.

Agreed.  I just think that if we tag things with real MIME types, the
web frontend has less logic to worry about. Other frontends are free
to treat all image/<foo> identically and just pass them to PIL, for
example.

Cheers,

f


More information about the IPython-dev mailing list