Suppose I have
TOOLS = "box_select,tap,poly_select" PC_fig = figure(tools=TOOLS, width=700, height=500, title=None)
Merck_source = ColumnDataSource(Merck_PC)
Merck_pt = PC_fig.circle("PC1","PC2",source=Merck_source)
I can select points by mouse using selection tools such as box_select, tap and poly_select. Suppose I have a button
Merck_toogle = Toggle(label="Toggle Merck individuals", button_type="success")
When clicked, a given set of points in Merck_source will be selected just like they will be if a selection tool is used through mouse, and a source selection event will be triggered.
Is there a way by which what I said above can be implemented?