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
Post a Comment