[IPython-dev] Static widgets

Cyrille Rossant cyrille.rossant at gmail.com
Wed Jan 29 14:25:49 EST 2014


Hi Brian,

That's great news! Is this prototype available somewhere? I'd love to
see how it works (even if the implementation is going to change, I
suppose the general idea is already there).

Cheers,
Cyrille

2014-01-29 Brian Granger <ellisonbg at gmail.com>:
> We have a prototype working, but it won't make it into 2.0. It is one
> of the top tasks for 3.0 though. The basic idea is that it will be
> possible to store widget messages in different storage backends:
>
> * in the .ipynb
> * in a co-located directory alongside the notebook.
> * ...
>
> nbconvert will be able to produce static html that knows how to
> instantiate widgets from these store messages and nbviewer will be
> made to work with all of these backends...
>
> we will get there...
>
> Cheers,
>
> Brian
>
> On Wed, Jan 29, 2014 at 10:22 AM, Raymond Yee <raymond.yee at gmail.com> wrote:
>> I second the questions from Cyrille.  My naive mind thinks immediately
>> of what Jake Vanderplas demonstrated in
>> http://jakevdp.github.io/blog/2013/12/05/static-interactive-widgets/ --
>> the ability to have the functionality of "static interactive widgets" is
>> something I'd love to see in the realm of IPython widgets.
>>
>> Enthusiastically,
>> -Raymond
>>
>> On 1/29/14 10:16 AM, Cyrille Rossant wrote:
>>> Hi,
>>>
>>> I just tried the notebook widgets, and they look really great. I'm
>>> wondering how widgets integrate with the nbformat, nbviewer,
>>> nbconvert, etc. It seems to me that, currently, widgets are not saved
>>> in .ipynb at all? It might be interesting to have the option to output
>>> them statically in some sort (even if they do not interact with
>>> anything).
>>>
>>> For instance, when viewing a notebook containing widgets on nbviewer,
>>> those widgets do not appear at all. One needs to download and execute
>>> the notebook in an IPython session to see how the widgets look like.
>>>
>>> More generally, I'm thinking about how one could create offline
>>> interactive documents with IPython. A notebook containing widgets
>>> could be converted in HTML with nbconvert. The HTML document would
>>> contain Javascript placeholders for function callbacks, and one would
>>> be free to write custom Javascript code responding to widget
>>> interactivity (thereby replacing Python by Javascript in the
>>> interaction loop). That would be really cool. Is that something that's
>>> going to be possible at some point?
>>>
>>> Best,
>>> Cyrille
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> --
> Brian E. Granger
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu and ellisonbg at gmail.com
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



More information about the IPython-dev mailing list