python - How to select text from DataTable object in Bokeh -


i have bokeh datatable object. dynamically updating using incoming stream of data. @ point of time select (using mouse) particular cell , copy value (to text-box). however, unable copy text. there attribute in datatable can used that, or there other workaround.

data = dict(x=[], y=[]) source = columndatasource(data) columns = [             tablecolumn(field="x", title="id"),             tablecolumn(field="y", title="count"),           ]  data_table = datatable(source=source, columns=columns, width=400, height=280)  demo_data = {} demo_data['x'] = ["9985", "5106", "1218", "3427",                   "2642", "2769", "3410", "9220",                   "1298", "6562"] demo_data['y'] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 

you should add editable attribute datatable like:

data_table = datatable(source=source, columns=columns, width=400, height=280, editable=true) 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -