How can I link the slider to update my plot in bokeh while in a jupyter notebook?
问题 I have created a function called ed_montecarlo that runs a montecarlo simulation with a set number of iterations and returns the results as a pandas data frame with multiple columns (not all of which are used here.) Currently I am trying to link this to a plot with Bokeh and have a slider that when changed will re-run the function using the new value of the slider. My code is as follows: def modify_doc(doc): source = ColumnDataSource(ed_montecarlo(num=1000)) TOOLS = "pan,wheel_zoom,box_zoom