<div dir="ltr">Hi Pierre,<div><br></div><div>Unfortunately such a thing doesn't exist right now.  I'm taking note of your use case, for the output area work that Kyle and I will be doing, and the static widget work I plan on doing later.</div><div><br></div><div>Sorry,</div><div>Jon</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 10, 2015 at 6:16 PM, Pierre Villeneuve <span dir="ltr"><<a href="mailto:pierre.villeneuve@gmail.com" target="_blank">pierre.villeneuve@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="gmail_default" style="font-family:verdana,sans-serif">Hello all,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">First, here is the context of my question to the group: I'm currently developing an image widget based on the HTML Canvas element, versus the IPython built-in widget based on the Image element.  For simple cases the differences seen by a user may not be noticeable, but in my case I specifically wish to propagate the canvas' JavaScript mouse events to Python callback functions. Another difference is my widget can be initialized directly from a Numpy array.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><span style="font-family:verdana,sans-serif">My question applies to my canvas image widget as well as the built-in image widget.  When I export my notebook to HTML the widget's displayed image is not present.  This is the opposite behaviour from an image displayed using </span><font face="monospace, monospace">IPython.display.Image()</font><font face="verdana, sans-serif">.  I know that widgets are displayed to the frontend in an area separate from the cell's standard output area, and that persisting widget's is in itself a huge topic.  I simply want a pretty picture to survive the export to HTML.</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">I'm curious to know if a near-term solution is possible whereby I might temporarily replace each of my displayed widget's images with an instance of </font><span style="font-family:monospace,monospace">IPython.display.Image()</span><font face="verdana, sans-serif">.  I can mentally visualize a path to a solution if only there was a place where I could define a callback function to be called just prior to HTML export.  </font><span style="font-family:verdana,sans-serif">Does sch a thing exist?</span></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Pierre</div><span class="HOEnZb"><font color="#888888"><div><div><div dir="ltr"><font face="verdana, sans-serif"><br><b>Pierre Villeneuve</b></font><div><font face="verdana, sans-serif"><a href="mailto:pierre.villeneuve@gmail.com" target="_blank">pierre.villeneuve@gmail.com</a></font><div><br></div></div></div></div></div>
</font></span></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" rel="noreferrer" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>