[IPython-dev] widget value persistence
Vasco Tenner
vasco+python at tenner.nl
Thu May 22 11:31:24 EDT 2014
Dear all,
On 02/27/2014 10:10 PM, Darren Dale wrote:
> However, if you re-run the cell, I think it will (and should) always
> return the default to what the code specifies. I think it's
What I quite often do to preserve the settings of a widget:
1. Create a widget
w = interactive(function)
display(w)
2. The just print the values of the sliders:
w.kwargs
3. Then copy this output in a new cell.
good_kwargs = {'a':1}
What would help me is if I can set the values of the widgets with
something like:
w = interactive(function)
w.kwargs = good_kwargs
display(w)
Is there a way to achieve this?
Kind regards,
Vasco
More information about the IPython-dev
mailing list