После обновления bokeh версии 1.0.0 при щелчке строки таблицы данных появляется сообщение об ошибке. Это работало отлично с версией 0.13 Подробности ниже:
Фрагмент кода:
tblSource.selected.on_change('indices', table_select_callback)
def table_select_callback(attr, old, new):
try:
selected_index = tblSource.selected["1d"]["indices"][0]
selectedId = str(tblSource.data["idList"][selected_index])
print(selectedId)
except IndexError:
pass
ERROR
2018-10-25 10:18:19,784 error handling message Message 'PATCH-DOC' (revision 1) content: {'events': [{'kind': 'ModelChanged', 'model': {'type': 'Selection', 'id': '4937'}, 'attr': 'indices', 'new': [2]}], 'references': []}: TypeError("'Selection' object is not subscriptable",)