Hi all,
I’m sure there is any easy flag / fix for this but I can’t for the life of me figure it out. When I make a DataTable object, it renders automatically scrolled to the bottom. How do I have it render automatically scrolled to the top?

from bokeh.io import output_notebook, show
from random import randint
import bokeh
output_notebook()
N=300
data = dict(col1=[randint(0, 100) for i in range(N)],
col2=[randint(0, 100) for i in range(N)])
source = bokeh.models.ColumnDataSource(data)
columns = [bokeh.models.TableColumn(field=“col1”, title=“column 1”),
bokeh.models.TableColumn(field=“col2”, title=“column 2”)]
data_table = bokeh.models.DataTable(source=source, columns=columns,
width=400, height=280, editable=True,
scroll_to_selection=True,
sortable=True)
bokeh.io.show(data_table)
``
For what its worth: scroll_to_selection=False
···
On Monday, October 9, 2017 at 2:56:47 PM UTC-7, Lewis Guignard wrote:
Hi all,
I’m sure there is any easy flag / fix for this but I can’t for the life of me figure it out. When I make a DataTable object, it renders automatically scrolled to the bottom. How do I have it render automatically scrolled to the top?

from bokeh.io import output_notebook, show
from random import randint
import bokeh
output_notebook()
N=300
data = dict(col1=[randint(0, 100) for i in range(N)],
col2=[randint(0, 100) for i in range(N)])
source = bokeh.models.ColumnDataSource(data)
columns = [bokeh.models.TableColumn(field=“col1”, title=“column 1”),
bokeh.models.TableColumn(field=“col2”, title=“column 2”)]
data_table = bokeh.models.DataTable(source=source, columns=columns,
width=400, height=280, editable=True,
scroll_to_selection=True,
sortable=True)
bokeh.io.show(data_table)
``