在代码中添加一行代码:
import ipywidgets as widgets widgets.VBox([widgets.Label(str(i)) for i in range(3)])
这将使用 ipywidgets 库并在Binder中正确渲染小部件。如果您的 notebook 中还有其他涉及小部件的代码,请确保正确导入和使用 ipywidgets 库。
ipywidgets
上一篇:BinderProxy是如何创建的?
下一篇:Binder事务失败!(包大小=624)。在调用verifyPhoneNumber()时,IGmsServiceBroker.getService失败。