<div dir="ltr">Do you think it's worth adding this to the base class as a utility method(s)?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 31, 2014 at 3:55 PM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class=""><div class="gmail_extra"><div class="gmail_quote">On 30 July 2014 21:04, Luke Stagner <span dir="ltr"><<a href="mailto:lstagner@uci.edu" target="_blank">lstagner@uci.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div>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.<span><font color="#888888"></font></span></div></blockquote></div><br></div></div><div class="gmail_extra">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:<br>



<br>

<p style="margin:0px;text-indent:0px">with open('foo.png', 'rb') as f:</p>
<p style="margin:0px;text-indent:0px">    import base64</p>
<p style="margin:0px;text-indent:0px">    imgdata = base64.b64encode(f.read())</p>
<p style="margin:0px;text-indent:0px">            self.send_response(self.iopub_socket, 'display_data', {'data':{'image/png': imgdata.decode('ascii')}})</p><br></div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Fernando Perez (@fperez_org; <a href="http://fperez.org" target="_blank">http://fperez.org</a>)<br>fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)<br>

fernando.perez-at-berkeley: contact me here for any direct mail<br>
</div>