我注意到在我的 Jupyter Lab 笔记本中,交互式小部件不起作用。
以下代码应该生成一个交互式滑块,但并没有:
以下代码应该生成一个交互式滑块,但并没有:
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets
def f(x):
return x
interact(f, x=10);
这里的问题是什么,我该如何使小部件工作?