can you post a simplified version of your program with data?
I suspect your plot might not be updating, because in your callback functions you use dataset_select.value and samples_slider.value to update the data. But these contain the values from before changing the Slider/Select. You should use the new argument.
See if this works:
def update_select_samples_or_dataset(attrname, old, new):
global X, Y
dataset = new
n_samples = int(samples_slider.value)
asdata = get_dataset(dataset, n_samples)
X = asdata[['aspects','importance']].as_matrix()
source.data = dict(x=X[:,0], y=X[:,1])
def update_slider_samples_or_dataset(attrname, old, new):
global X, Y
dataset = dataset_select.value
n_samples = int(new)
asdata = get_dataset(dataset, n_samples)
X = asdata[['aspects','importance']].as_matrix()
source.data = dict(x=X[:,0], y=X[:,1])
dataset_select.on_change('value', update_select_samples_or_dataset)
samples_slider.on_change('value', update_slider_samples_or_dataset)
bokehcommand, e.g.bokeh serve --show app.pyIf you are doing that already, what have you tried already to debug? - bigreddot