Bokeh plotting in infinite loop upon user selection, plot also distorted and doesn't reset

1). As soon as I make a multiselection the figure gets distorted

2). It seems the plot is running in an infinite loop.

3). The plot doses not properly update when user changes selections. It just adds more plots without removing the previous plot.

I’ve attached the code and attached excel sheets where I read the data.

dummy.xlsx (11 KB)

dummy2.xlsx (10.6 KB)

files.txt (22 Bytes) (2.21 KB)

voids.txt (25 Bytes)