[IPython-dev] Feasilibity of widgets/layout for mimicking this

Nicholas Bollweg nick.bollweg at gmail.com
Wed Aug 27 22:57:07 EDT 2014

I was suggesting (with the naming) that e would be updated by a changing,
but I agree, it's confusing.

I tried something more complicated with kwargs, but it ended up being a
whole second implementation of the thing that Wire does, which seemed like
too much, but would look like this (which I think is somewhat more

@wire(wire.e.value, a=wire.a.value)def thrice(a):
    return a * 3

I've updated to use that, as well as an example of the dictionary-based
assignment it is using. I welcome any other suggestions: the decorator
syntax is somewhat limiting, which is probably good as this is already
really evil :)

On Wed, Aug 27, 2014 at 7:47 PM, hugadams <hughesadam87 at gmail.com> wrote:

> These are def cool.  Can you keep me updated if you add more to this?  I'd
> like to steal it (with credit) for our widgets.
> One question about the decorator:
> @wire(wire.e.value, wire.a.value)def thrice(a):
>     return a * 3
> Does this mean that anytime the "e" widget value is changed, the "a"
> widget value will be multiplied by 3?  Or am I not understanding what is
> happening here?
> On Wed, Aug 27, 2014 at 6:24 PM, Nicholas Bollweg [via Python] <[hidden
> email] <http://user/SendEmail.jtp?type=node&node=5069424&i=0>> wrote:
>> Adam:
>> It's really no problem... this is exactly the way we want to be building
>> engineering tools at work, so it's been beneficial to have a more-defined
>> problem than "make interactive dashboards better/faster/stronger".
>> I really dug into the 3.0 notebook over the weekend, and do find it a bit
>> nicer.
>> Also, your decorator made me want some similar stuff, so I hacked
>> together these two classes:
>> http://nbviewer.ipython.org/gist/bollwyvl/8001ed62c6868301c26e
>> again, no widget actually show up, but I think one gets the idea.
>> it does provide a decorator (I'm not happy with it yet) as well as
>> overloaded assignment and transformed values. I hope this might be useful!
>> _______________________________________________
>> IPython-dev mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=5069419&i=0>
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>> ------------------------------
>>  If you reply to this email, your message will be added to the
>> discussion below:
>> http://python.6.x6.nabble.com/Feasilibity-of-widgets-layout-for-mimicking-this-tp5068197p5069419.html
>>  To unsubscribe from Feasilibity of widgets/layout for mimicking this, click
>> here.
>> <http://python.6.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> ------------------------------
> View this message in context: Re: Feasilibity of widgets/layout for
> mimicking this
> <http://python.6.x6.nabble.com/Feasilibity-of-widgets-layout-for-mimicking-this-tp5068197p5069424.html>
> Sent from the IPython - Development mailing list archive
> <http://python.6.x6.nabble.com/IPython-Development-f1646922.html> at
> Nabble.com.
> _______________________________________________
> 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/20140827/b174681f/attachment.html>

More information about the IPython-dev mailing list