<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thanks that did the trick.<br>
<br>
-Luke <br>
<br>
On 07/31/2014 03:55 PM, Thomas Kluyver wrote:<br>
</div>
<blockquote
cite="mid:CAOvn4qiquFYsO_V0n-DvL4Y+WtwkGdj-Qt7DXYpkQjhgNYRWug@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On 30 July 2014 21:04, Luke Stagner <span
dir="ltr"><<a moz-do-not-send="true"
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></span></div>
</blockquote>
</div>
<br>
</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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
IPython-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a>
<a class="moz-txt-link-freetext" href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>