DataTable crashes with 'field' in dict of data in ColumnDataSource

Is this a bug? DataTable does not like a source with a data key of ‘field’, this causes no layout to be generated in the web view.

Is there a list of forbidden keywords in this type of scenario?

Thanks!

Dan

Bokeh 0.13.0

Mac OS 10.13.3

python 2.7.10

Safari 11.0.3

from bokeh.models import ColumnDataSource
from bokeh.models.widgets import TableColumn, DataTable
from bokeh.io import curdoc
from bokeh.layouts import column

source = ColumnDataSource(data=dict(x=[], y=[], field=[]))

columns = [TableColumn(field="x", title="X"),
           TableColumn(field="y", title="Y"),
           TableColumn(field="field", title="Field")]
table = DataTable(source=source, columns=columns)

curdoc().add_root(column(table))

Hi,

That's definitely not intentional, please file a GH bug report with all this information.

Thanks,

Bryan

···

On Oct 23, 2018, at 16:20, [email protected] wrote:

Is this a bug? DataTable does not like a source with a data key of 'field', this causes no layout to be generated in the web view.

Is there a list of forbidden keywords in this type of scenario?

Thanks!

Dan

Bokeh 0.13.0
Mac OS 10.13.3
python 2.7.10
Safari 11.0.3

from bokeh.models import ColumnDataSource
from bokeh.models.widgets import TableColumn, DataTable
from bokeh.io import curdoc
from bokeh.layouts import column

source = ColumnDataSource(data=dict(x=, y=, field=))

columns = [TableColumn(field="x", title="X"),
           TableColumn(field="y", title="Y"),
           TableColumn(field="field", title="Field")]
table = DataTable(source=source, columns=columns)

curdoc().add_root(column(table))

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/0b78838c-3140-443a-a2d2-4333f43d9ee0%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks Bryan.

···

On Tuesday, October 23, 2018 at 9:04:54 PM UTC-4, Bryan Van de ven wrote:

Hi,

That’s definitely not intentional, please file a GH bug report with all this information.

Thanks,

Bryan

On Oct 23, 2018, at 16:20, [email protected] wrote:

Is this a bug? DataTable does not like a source with a data key of ‘field’, this causes no layout to be generated in the web view.

Is there a list of forbidden keywords in this type of scenario?

Thanks!

Dan

Bokeh 0.13.0

Mac OS 10.13.3

python 2.7.10

Safari 11.0.3

from bokeh.models import ColumnDataSource

from bokeh.models.widgets import TableColumn, DataTable

from bokeh.io import curdoc

from bokeh.layouts import column

source = ColumnDataSource(data=dict(x=, y=, field=))

columns = [TableColumn(field=“x”, title=“X”),

       TableColumn(field="y", title="Y"),
       TableColumn(field="field", title="Field")]

table = DataTable(source=source, columns=columns)

curdoc().add_root(column(table))


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+un..[email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/0b78838c-3140-443a-a2d2-4333f43d9ee0%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.