我测试了这个脚本,ajax正在发送数据,所以这个变量很好。我已经回应了他们每一个人,他们工作得很好......当我发送电子邮件时,我获得了成功,所以它的工作?但我的邮件上没有任何东西?
from bokeh.plotting import curdoc, output_file
from bokeh.models.widgets import Button, CheckboxGroup
from bokeh.layouts import widgetbox, row
from bokeh.models import ColumnDataSource, Callback
output_file("states.html", title="states")
states_list = ["Alabama", "Alaska ", "Arizona", "Arkansas", "California", \
"Colorado", "Connecticut", "Delaware", "Florida", "Georgia", \
"Hawaii", "Idaho ", "Illinois", "Indiana", "Iowa", "Kansas", \
"Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", \
"Michigan ", "Minnesota", "Mississippi", "Missouri", "Montana",\
"Nebraska", "Nevada ", "New Hampshire", "New Jersey",\
"New Mexico", "New York", "North Carolina", "North Dakota", \
"Ohio", "Oklahoma","Oregon", "Pennsylvania", "Rhode Island", \
"South Carolina", "South Dakota", "Tennessee", "Texas", "Utah",\
"Vermont", "Virginia","Washington", "West Virginia", \
"Wisconsin", "Wyoming"]
states = CheckboxGroup(
labels = states_list,
active=[0,1])
select_all = Button(label="select all")
def update():
states.active = list(range(len(states_list)))
select_all.on_click(update)
group = widgetbox(select_all, states)
layout = row(group)
curdoc().add_root(layout)
curdoc().title = "states"