Pyviz 面板示例返回属性错误

Pyviz Panel Examples Returning Attribute Errors

通过 Panel 用户指南工作 - 此页面 (https://panel.pyviz.org/user_guide/Components.html) 上使用 .extend 的任何示例似乎都不起作用并且正在返回

AttributeError: 'Tabs' object has no attribute 'extend'

以及 gridspec 示例 returns:

AttributeError: module 'panel' has no attribute 'GridSpec'

目前正在使用 Panel 0.3.1

Panel 当前为 0.6 (https://anaconda.org/pyviz/panel),0.3.1 将不支持任何更新的新增功能。所以你绝对应该升级,此时它应该与网站相匹配。如果您确实想要 运行 旧版本,只需使用包中包含的示例,它们将与该版本中的可用内容相匹配。

不确定这是版本问题:我使用的是 v.0.6.2 和 运行 以下示例:

radio_group = pn.widgets.RadioButtonGroup(name='Radio Button Group',
                                          options=['Biology', 'Chemistry', 'Physics'],
                                          button_type='success')
radio_group

也会产生相同类型的错误:

AttributeError: 'RadioButtonGroup' object has no attribute 'value'