[IPython-dev] How to toggle between LaTeX and plain text in notebook viewer

Jon Wilson jsw at fnal.gov
Wed Jul 29 20:49:01 EDT 2015



On 07/29/2015 07:43 PM, Thomas Kluyver wrote:
> On 29 July 2015 at 17:37, Robert Dodier <robert.dodier at gmail.com 
> <mailto:robert.dodier at gmail.com>> wrote:
>
>     I wonder, is there a way for the user to toggle the display of
>     a cell so that they can see the plain text representation
>     instead of the LaTeX-formatted representation?
>
>
> By default, only one preferred representation is displayed. You could 
> write a custom template that would render both and let you toggle 
> between them, though it might be a bit fiddly to do.
A more general way to provide multiple representations of things (and 
let the user select among them) might be quite nice.  I've often wished 
for my matplotlib inline plots to send both a PNG and a PDF to the 
notebook, and make the PNG a link to the PDF, for example.
Regards,
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150729/71529428/attachment.html>


More information about the IPython-dev mailing list