[IPython-dev] Camera widget

Jason Grout jason-sage at creativetrax.com
Thu Feb 27 11:24:07 EST 2014

On 2/26/14 11:00 PM, Doug Blank wrote:
> BTW, if you give the button an id, <button id = picture_button>, then
> you can:
>      def click(self):
> display(Javascript("document.getElementById('picture_button').click();"));
> which will programmatically take a picture.

But giving the button a specific single html id makes it so you can only 
have one such button on a page.


More information about the IPython-dev mailing list