IPython notebook interactive function: how to save the updated function parameters

非 Y 不嫁゛ 提交于 2019-12-05 23:04:57

You want to create the float widget manually:

from IPython.html.widgets import FloatSlider

# same as before

F1 = FloatSlider(value=5, min=0, max=10)
w=interactive(sigmoid_demo, a=F1, b=7)
display(w)

Then you can access F1.value any time after and it will be the current slider value.

You can also loop through w.widgets but that's painful.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!