[IPython-dev] How to tell IPython to render %%latex or other magical stuff

Thomas Kluyver takowl at gmail.com
Wed Jul 29 14:03:03 EDT 2015


On 29 July 2015 at 10:54, Robert Dodier <robert.dodier at gmail.com> wrote:

> What does the kernel return to tell
> the front end to render stuff as LaTeX? or as a plot?
>

The kernel needs to send a display_data message (or execute_request, which
has basically the same semantics plus a prompt number). Here's the
messaging docs:
http://jupyter-client.readthedocs.org/en/latest/messaging.html#display-data

What the user needs to do in a notebook to make the kernel send that
message depends on the kernel. In IPython, we expose a set of classes and
functions in the IPython.display module to display different kinds of
output. Fishbowl may have something similar, or that may be a feature yet
to be added.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150729/63d893a7/attachment.html>


More information about the IPython-dev mailing list