[IPython-dev] help with @interactive

Fernando Perez fperez.net at gmail.com
Mon Jan 20 20:50:49 EST 2014


On Mon, Jan 20, 2014 at 2:52 AM, Matthias BUSSONNIER <
bussonniermatthias at gmail.com> wrote:

>
> Le 19 janv. 2014 à 22:18, Mark Bakker a écrit :
>
> Hello List,
>
> I am trying to do this (got this from one of Fernando's Notebooks):
>
> @interactive( x=(0,10) )
> def f(x):
>     print 'x is: ',x
>
> But I get an error:
>
> TypeError: interactive() got an unexpected keyword argument 'x'
>
>
> @interactive is still in development, and not even yet in master,
> Fernando was (most probably) using a patched version.
>

correct, I was running a local merge of #4374, together with a locally
redefined @interactive.

Mark, rather than jumping through these hoops, I recommend you wait a few
more days til we can properly merge this code with official APIs. All that
experimentation we were doing individually was taken into account for the
design of what our final APIs will look like.

If you have any feedback, feel free to leave it on the PR discussion page.

Cheers,

f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140120/fc9beff3/attachment.html>


More information about the IPython-dev mailing list