[IPython-dev] Camera widget

Doug Blank doug.blank at gmail.com
Thu Feb 27 00:00:18 EST 2014

BTW, if you give the button an id, <button id = picture_button>, then you

    def click(self):


which will programmatically take a picture.

Here is a puzzle: can you make a kernel-side script that will take a
picture, *and* return it? It seems like you can't because the kernel can't
handle receiving the image while at the same time run your code waiting for
the message to come it. I guess you could do it with a non-blocking kernel?
Yep, just tried it by putting our kernel in non-blocking mode.


On Wed, Feb 26, 2014 at 10:43 PM, Doug Blank <doug.blank at gmail.com> wrote:

> On Wed, Feb 26, 2014 at 10:06 PM, Jason Grout <jason-sage at creativetrax.com
> > wrote:
>> On 2/26/14 8:59 PM, Jason Grout wrote:
>> > I'm updating to the current master to see if I can see the problem.
>> Okay, the problem was the recent PR that changed all the paths for
>> widget javascript files.  It's a one-line fix in the require statement
>> (https://gist.github.com/jasongrout/9210458/revisions).
>> See the updated gist now.
>> Thanks,
>> Jason
> Thanks Jason; good catch! That explains (and solves) all of the issues we
> were having.
> The JavaScript paths are wrong in "Part 6 - Custom Widgets" in the
> examples. I have thought that having unittests based on notebooks would be
> a good thing [1]... don't want your docs getting out of sync with the
> code... the docs are as important as the rest of the project. Now, back to
> the real work...
> -Doug
> [1] - https://github.com/paulgb/runipy/issues/14
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140227/ff39ab4f/attachment.html>

More information about the IPython-dev mailing list