[IPython-dev] Widget example that uses classes instead of globals?

Nicholas Bollweg nick.bollweg at gmail.com
Tue Sep 16 16:21:30 EDT 2014


@adam
No problem, no special acknowledgement necessary! The credit goes to the
creators of the Notebook and its ecosystem (bootstrap, backbone, etc): as a
user, I feel much better about the result of this little exercise vs. other
forays into, say, wx, Flash/Flex,  to create similar things. Certainly do
keep us posted on your progress!

@brian
leafletwidget: i've needed this in the past! thanks for the link!

> offtopic: where's the bower.io for widgets!? how would it look in the
> jupyter future?
>
the mixin looks better for antonino's broader question, as well.
Do you like the approach you have taken for treating the widget js as a
template, inserted into the notebook output? is this a better way to do it
than load_extensons? will this be better for static widgets, or will stuff
from load_extensions be included?

@fernando
Making it less notional is a great upgrade, and i'll likely add a link to
your expanded version. I think we still want some examples that are even
less notional (i.e. useful!), but happy to help!

On Tue, Sep 16, 2014 at 3:22 PM, Fernando Perez <fperez.net at gmail.com>
wrote:

>
> On Mon, Sep 15, 2014 at 8:19 PM, Nicholas Bollweg <nick.bollweg at gmail.com>
> wrote:
>
>> @adam: Sorry it took me a while to respond. Here is an updated version of
>> the fake GUI, implemented as a series of classes: a standalone graph, a
>> couple reusable control components and the full-blown end user GUI. I tried
>> to put a few examples of different techniques in that we have used: link,
>> on_trait_changed, CSS, Bootstrap. I didn't do any custom Backbone, as that
>> is a whole other kettle of fish.
>>
>> <http://goog_798561651>
>>>
>>> http://nbviewer.ipython.org/gist/bollwyvl/ddd4bf5d7c879012fa2c
>>>
>>
> Wonderful example, thanks Nicholas!
>
> I've made a minimally modified version here:
>
> https://gist.github.com/fperez/c65b06b260bde5663dbf
>
> just to illustrate how to actually plot data in the 'plot area' with
> matplotlib.
>
> I may use this in a talk I'm giving tomorrow, if so I'll do so with full
> credit to you.
>
> Thanks for sharing!
>
> f
>
>
> --
> Fernando Perez (@fperez_org; http://fperez.org)
> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
> fernando.perez-at-berkeley: contact me here for any direct mail
>
> _______________________________________________
> 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/20140916/8363b21e/attachment.html>


More information about the IPython-dev mailing list