Update a Bokeh Span with an interact element in Jupyter notebook
问题 I am trying to make a span in bokeh using jupyter widgets. from ipywidgets import interact import numpy as np from scipy.stats import norm from bokeh.sampledata.daylight import daylight_warsaw_2013 from bokeh.io import push_notebook, show, output_notebook from bokeh.plotting import figure from bokeh.models import Span output_notebook() p = figure() x_axis = np.arange(-10, 10, 0.001) # Mean = 0, SD = 2. y_axis = norm.pdf(x_axis,0,2) p.line(x_axis, y_axis, line_dash='solid', line_width=2)