[IPython-dev] IDL/GDL kernel

Thomas Kluyver takowl at gmail.com
Thu Jul 31 18:55:01 EDT 2014

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

> Good news no more error. Bad news still no inline plot. I even set it so
> that it reads some random png I have every time and still no go.

Sorry, I got the message structure wrong when I gave you an example without
trying it. This time, here's an example that I have tested and ensured that
it works:

with open('foo.png', 'rb') as f:

    import base64

    imgdata = base64.b64encode(f.read())

self.send_response(self.iopub_socket, 'display_data', {'data':{'image/png':
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140731/7763842b/attachment.html>

More information about the IPython-dev mailing list