BokehJS missing for Table display with Flask

Hello,

I am trying to display bokeh table with Flask app.

Here is my sample code:

def compute_table(resolution=500):

"""Return filename of plot of the damped_vibration function."""

data = dict(

    index = list(range(10)),

    x = list(range(10)),

    y = list(range(10)),

    z = ['some other data'] * 10

     )

source1 = ColumnDataSource(data)

columns = [

    TableColumn(field="x", title="x-values"),

    TableColumn(field="y", title="y-values"),

    ]

data_table = DataTable(source=source1, columns=columns, width=400, height=280)

return components(data_table)

return widgetbox(data_table)

return components(widgetbox(data_table))

app.route(’/table’, methods=[‘GET’, ‘POST’])

def table():

plot_script, table_div = compute_table()

html = render_template('view_table.html',

                       plot_script=plot_script,

                       plot_div=table_div,

                       )

return encode_utf8(html)
···

Moshiour
Stockholm, Sweden

phone(ISD):0046700920057