[IPython-User] switching between display representations in the frontend

Matthias BUSSONNIER bussonniermatthias@gmail....
Sun Mar 3 05:11:05 CST 2013


Hi, 
Le 3 mars 2013 à 08:41, Thomas Hisch a écrit :

> Hello,
> 
> the sympy printing extension configures formatters for rendering latex
> expressions: image/png and text/latex. According to [0] all
> representations of an object for which multiple formatters are
> registers will be calculated and sent to the frontend but only one is
> displayed in the frontend. Is there a way to switch the default
> displayed repr in the frontend (without using display_xxx manually for
> each obj)?

On dev version of the notebook, you can monkey-patch the javascript :

	IPython.OutputArea.display_order

Which default value is :

	[ "javascript", "html", "latex", "svg", "png", "jpeg", "text" ]

It is not really supported yet, and have chance of not working at load time. 
--
Matthias


> 
> Regards
> Thomas
> 
> [0] http://ipython.org/ipython-doc/dev/api/generated/IPython.core.display.html
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user



More information about the IPython-User mailing list