[IPython-dev] IDL/GDL kernel

Thomas Kluyver takowl at gmail.com
Wed Jul 30 22:30:18 EDT 2014


On 30 July 2014 18:32, Luke Stagner <lstagner at uci.edu> wrote:

> I have done what you have suggested and I verified that it is producing
> the .png files. If I were to hazard a guess I would say that
> publish_display_data is not connecting to the notebook.
>

Ah, digging into the code, you're right. publish_display_data depends on
the IPython shell machinery, which is not being spun up for non-IPython
kernels.

You should be able to do it like this:
self.send_response(self.iopub_socket, 'display_data', {'image/png': data})

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


More information about the IPython-dev mailing list