I have these python code
from bokeh.embed import components
from bokeh.plotting import figure
from bokeh.models import layouts, CustomJS, Select
bokeh_tools = "pan,wheel_zoom"
plot_1 = figure(x_axis_type="datetime", plot_width=800, tools=bokeh_tools, title="plot_1")
plot_1.line(x_values, y_values)
plot_2 = figure(x_axis_type="datetime", plot_width=800, tools=bokeh_tools, title="plot_2")
plot_2.line(x_values_other, y_values_other)
plot_3 = figure(x_axis_type="datetime", plot_width=800, tools=bokeh_tools, title="plot_3")
plot_3.line(x_values, y_values)
select = Select(title="SELECT", options=["val1", "val2"])
column = layouts.Column(plot_1, select, plot_2)
select.callback = CustomJS(args={"column": column,
"plot_1": plot_1,
"plot_2": plot_2,
"plot_3": plot_3}, code="""
if(cb_obj.value === "val1"){
Bokeh.index[column.id].child_views[plot_2.id].remove(); // remove plot_2 from html
//what i must to do to add generated on python side plot_3 and show it
}else if(cb_obj.value === "val2"){
// some code here
}""")
script, div = components(column)
Then this div and script i insert in html and show on the some page. On the page will visible 'plot_1', 'plot_2' and 'select' is dropdown. These plots have differents values with many lines. I want to click by selected dropdown and then change plot_2 on plot_3.
What i had to do that plot_3 render in html document by clicking on dropdown? Or any other way to change rerender plots by clicking on client html ?