[IPython-dev] Default values for widgets

Stéfan van der Walt stefan at sun.ac.za
Sat Feb 8 02:08:31 EST 2014


On Fri, 07 Feb 2014 22:56:36 -0800, Brian Granger wrote:
> interact(f, a=FloatSliderWidget(..., value=10), ...)

That will do the trick for me, thanks.

> We decided that we wanted to keep the abbreviations as simple as
> possible and just allow people to pass Widgets for the more
> complicated usage cases. Part of this is that we are wanting to be as
> slow/conservative as possible in introducing complexity to new APIs.
> We want to see how this stuff works in practice and gather data from
> our users (like this!).

The data point for me then is that it feels unintuitive that the default
keyword argument is not respected.

Thanks for all your hard work on this!

Stéfan




More information about the IPython-dev mailing list