bokeh / jupyter_bokeh

An extension for rendering Bokeh content in JupyterLab notebooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Big table hangs jupyter client

nasa-nccs-cds opened this issue · comments

Run the following Jupyterlab 3 notebook cell and then click on any of the column headers. The jupyter client hangs.:

from jupyter_bokeh.widgets import BokehModel
import pandas as pd
from bokeh.models import ColumnDataSource, DataTable, TableColumn
from bokeh.io import output_notebook
output_notebook()
idx = list(range(100000))
data_dict = dict( index= idx, value= [ str(id) for id in idx ] )
df = pd.DataFrame(data_dict)
tab_columns = [ TableColumn(field=colname, title=f'{colname}') for colname in data_dict.keys() ]
cds = ColumnDataSource(df)
table = DataTable( source=cds, columns=tab_columns, width=600, height=150, sortable=True, selectable="checkbox" )
BokehModel( table )

Closing, as there is almost certainly nothing jupyter-specific about this, and a duplicate issue has been opened on the main repo