From bokeh plotting import figure columndatasource from bokeh models widgets import dropdown from bokeh models ranges import datarange1d factorrange from bokeh layouts if you save this and run it with bokeh serve selecting b from the dropdown will blank out the plot but there is no error