【发布时间】:2021-09-28 05:50:30
【问题描述】:
当我使用交互类创建表单时,很容易为点击事件提供python回调函数,如示例My_CallBack_function所示。
from ipywidgets import interactive, widgets
slow = interactive(My_CallBack_function, {'manual': True}, i=widgets.FloatSlider(min=1e4, max=1e6, step=1e4))
如果表单和按钮被创建为自定义小部件,如何运行 python 代码或 python 调用函数'on click'。
【问题讨论】:
标签: jupyter-notebook jupyter jupyter-lab jupyterhub jupyter-console