<div dir="ltr">If it's a plain terminal session, only the plaintext formatter is enabled by default, since no other formats are renderable. You probably just want to set `display_formatter.formatters['text/latex'].enabled = True`.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 29, 2013 at 9:36 AM, Jason Moore <span dir="ltr"><<a href="mailto:moorepants@gmail.com" target="_blank">moorepants@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p style="margin-top:0px"> 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: <a href="http://ipython.org/ipython-doc/dev/api/generated/IPython.core.formatters.html#IPython.core.formatters.DisplayFormatter.format" target="_blank">http://ipython.org/ipython-doc/dev/api/generated/IPython.core.formatters.html#IPython.core.formatters.DisplayFormatter.format</a></p>



<p style="margin-top:0px"></p><p style="margin-top:0px">I'm writing this test:</p><p style="margin-top:0px"><a href="https://github.com/moorepants/sympy/blob/b748fae55c2cc3e973340b5e85cadd83a80f3405/sympy/interactive/tests/test_ipythonprinting.py#L59" target="_blank">https://github.com/moorepants/sympy/blob/b748fae55c2cc3e973340b5e85cadd83a80f3405/sympy/interactive/tests/test_ipythonprinting.py#L59</a><br>



</p><p style="margin-top:0px">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()'.</p>



<p style="margin-top:0px">How do I output other mimetypes?<br></p><div><div dir="ltr">Jason<br><a href="http://moorepants.info" target="_blank">moorepants.info</a><br><span>+01 <a href="tel:530-601-9791" value="+15306019791" target="_blank">530-601-9791</a></span><br>

</div></div>


</div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>