☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

DataTable fail in bokeh 0.12.7

Community Support
rafaelwitter
rafaelwitter

I’m developing a system with DataTable and AutocompleteInput to filter.I ran the same code in bokeh 0.12.6 and 0.12.7, check below the code and figure.

In bokeh 0.12.6 the code work fine and only AutocompleteInput fail in style. I saw that this style problem in AutocompleteInput was solved in 0.12.7.

The problem is that DataTable not work in 0.12.7 and i have no idea what’s happening.

from bokeh.layouts import widgetbox

from bokeh.models import ColumnDataSource

from bokeh.models.widgets import DataTable, TableColumn, AutocompleteInput

from bokeh.io import curdoc

import pandas as pd

df = pd.DataFrame({‘text’: [‘aaa’, ‘aab’, ‘aac’, ‘aaa’, ‘aab’, ‘aac’, ‘aaa’, ‘aab’, ‘aac’, ‘aaa’],

                'numbers': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},)

source = ColumnDataSource(df)

columns = [ TableColumn(field=df.columns[0], title=df.columns[0]),

        TableColumn(field=df.columns[1], title=df.columns[1])]

data_table = DataTable(source=source, columns=columns)

input_text = AutocompleteInput(title=df.columns[1], completions=df.iloc[:,1].unique().tolist())

def update():

if input_text.value == '':

    current = df

else:

    current = df[(df.iloc[:,1] == input_text.value)]

source.data = {

                 df.columns[0] : current.iloc[:,0],

                 df.columns[1] : current.iloc[:,1],

               }

input_text.on_change(‘value’, lambda attr, old, new: update())

box = widgetbox([input_text, data_table])

curdoc().add_root(box)

``

I appreciate any help

Thanks

Rafael Pais

plataform: win-64

conda version 4.2.9

bokeh 0.12.6 and bokeh 0.12.7

⌁   Link to post
Bryan
Bryan

Hi,

I can't reproduce and problem with master or dev build 0.12.8dev2 If you can reproduce a problem on a recent dev build please file a GH bug issue with full information.

  <no title> — Bokeh 3.3.2 Documentation

Thanks,

Bryan

···

On Sep 5, 2017, at 08:51, rafaelwitter@gmail.com wrote:

I'm developing a system with DataTable and AutocompleteInput to filter.I ran the same code in bokeh 0.12.6 and 0.12.7, check below the code and figure.
In bokeh 0.12.6 the code work fine and only AutocompleteInput fail in style. I saw that this style problem in AutocompleteInput was solved in 0.12.7.
The problem is that DataTable not work in 0.12.7 and i have no idea what's happening.

from bokeh.layouts import widgetbox
from bokeh.models import ColumnDataSource
from bokeh.models.widgets import DataTable, TableColumn, AutocompleteInput
from bokeh.io import curdoc
import pandas as pd

df = pd.DataFrame({'text': ['aaa', 'aab', 'aac', 'aaa', 'aab', 'aac', 'aaa', 'aab', 'aac', 'aaa'],
                    'numbers': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},)

source = ColumnDataSource(df)

columns = [ TableColumn(field=df.columns[0], title=df.columns[0]),
            TableColumn(field=df.columns[1], title=df.columns[1])]
                      
data_table = DataTable(source=source, columns=columns)

input_text = AutocompleteInput(title=df.columns[1], completions=df.iloc[:,1].unique().tolist())

def update():
    if input_text.value == '':
        current = df
    else:
        current = df[(df.iloc[:,1] == input_text.value)]

    source.data = {
                     df.columns[0] : current.iloc[:,0],
                     df.columns[1] : current.iloc[:,1],
                   }

input_text.on_change('value', lambda attr, old, new: update())

box = widgetbox([input_text, data_table])
curdoc().add_root(box)

I appreciate any help

Thanks

Rafael Pais

plataform: win-64
conda version 4.2.9
bokeh 0.12.6 and bokeh 0.12.7

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/a078f980-1e88-4ca7-be6e-5d47b3c92405%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled