Raspberry Pi and Bokeh App

Bokeh App won’t load in Chromium or Iceweasel web browsers on the Raspberry Pi 2 when using the command ‘sudo python -m bokeh serve widgets.py’. When I go to the localhost:5006 page, the bokeh app never loads. Everything is up to date and no errors show up in the terminal once the command is executed.

Has anyone else seen this issue or found a way around it.

Below is the code for app:

from bokeh.io import curdoc

from bokeh.models.widgets import TextInput, Button, Paragraph

from bokeh.layouts import layout

text_input = TextInput(value=‘Test’)

button = Button(label=‘Generate Text’)

output = Paragraph()

def update():

output.text = 'Get Started: ' + text_input.value

return

button.on_click(update)

lay_out = layout([[button, text_input], [output]])

curdoc().add_root(lay_out)

Can you verify that you have Tornado <4.5 installed? Tornado 4.5 (released earlier this month) is incompatible with current and previously release Bokeh versions.

Bryan

···

On May 15, 2017, at 07:35, [email protected] wrote:

Bokeh App won't load in Chromium or Iceweasel web browsers on the Raspberry Pi 2 when using the command 'sudo python -m bokeh serve widgets.py'. When I go to the localhost:5006 page, the bokeh app never loads. Everything is up to date and no errors show up in the terminal once the command is executed.

Has anyone else seen this issue or found a way around it.

Below is the code for app:

from bokeh.io import curdoc

from bokeh.models.widgets import TextInput, Button, Paragraph

from bokeh.layouts import layout

text_input = TextInput(value='Test')

button = Button(label='Generate Text')

output = Paragraph()

def update():

    output.text = 'Get Started: ' + text_input.value

    return

button.on_click(update)

lay_out = layout([[button, text_input], [output]])

curdoc().add_root(lay_out)

--
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/1a871c08-24c6-4e78-a2c0-dd8c13dd33f6%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.