Hello,
I’m trying to create an app on bokeh-server, where I need
to create a dict (or list) of ColumnDataSource instances.
#Data sources
sData = dict()
for Id in Data:
sData[Id] = Instance(ColumnDataSource)
``
I’ve used a https://github.com/bokeh/bokeh/tree/master/examples/app/stock_applet example as a basis.
After class initialization the make_source() method is executed.
Then I’m trying to catch a selection event:
def setup_events(self):
super(my_app, self).setup_events()
for Id in self.Data:
if self.sData[Id]:
self.sData[Id].on_change(‘selected’, self, ‘selection_change’)
``
But there is an error:
AttributeError: ‘Instance’ object has no attribute ‘on_change’
Is it possible to trig events from dictionary of ColumnDataSource and what I’m doing wrong?

