How dyanamically make subselection?

Dear all,

I am now to bokeh and I would like to make a selection based on another one like described in the following:

https://stackoverflow.com/questions/56244434/python-how-to-make-multiple-selection-in-bokeh

Is it possible?