
Hello, I am inquiring about updating DataTable, if its source CDS is updated from Python code.
Saying
datasource = {‘x’: [1, 2], ‘y’: [14, 15]}
table_source = ColumnDataSource(data=datasource)
columns = [TableColumn(field=“x”, title=“X axis”),TableColumn(field=“y”, title=“Y axis”)]
data_table = DataTable(source=table_source, columns=columns, editable=True, reorderable=False)
verycircle = map_figure.circle(x=‘x’, y=‘y’, source=data_table, size=5, color=“red”)
Now, if a periodic callback changes datasource in background, saying changing datasource = {‘x’: [3, 4], ‘y’: [14, 15]}
how do I redraw a DataTable and plot automatically?
Also is it possible to update Data source not by editing the table, but also by code and periodically with redrawing of the DataTable as new values arrive ?
