小编Kri*_*ral的帖子

散景服务器和on.click(on.change)什么都不做

我试图让Bokeh服务器打印出来,但是我得到的是一个运行在http:// localhost:5006 /?bokeh-session-id = default的实例,带有单选按钮.当我点击按钮时没有任何反应.有什么我想念的吗?

from bokeh.models.widgets import RadioButtonGroup
from bokeh.plotting import figure, show, output_server


def my_radio_handler():
    print 'Radio button option selected.'


radio_button_group = RadioButtonGroup(
        labels=["Option 1", "Option 2", "Option 3"], active=0)

radio_button_group.on_click(my_radio_handler)

output_server()

show(radio_button_group)
Run Code Online (Sandbox Code Playgroud)

python bokeh

2
推荐指数
1
解决办法
2574
查看次数

标签 统计

bokeh ×1

python ×1