[IPython-dev] mimetypes from format()
Jason Moore
moorepants at gmail.com
Sun Dec 29 12:36:21 EST 2013
I'm having trouble figuring out how to get the DisplayFormatter to return
the latex representation, in particular the format function seems to be
able to return many mimetypes:
http://ipython.org/ipython-doc/dev/api/generated/IPython.core.formatters.html#IPython.core.formatters.DisplayFormatter.format
I'm writing this test:
https://github.com/moorepants/sympy/blob/b748fae55c2cc3e973340b5e85cadd83a80f3405/sympy/interactive/tests/test_ipythonprinting.py#L59
And want to verify that the 'text/plain' and 'text/latex' function as
expected after changing settings in SymPy. I can only get the 'text/plain'
to output from 'format()'.
How do I output other mimetypes?
Jason
moorepants.info
+01 530-601-9791
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20131229/1d9a5202/attachment.html>
More information about the IPython-dev
mailing list