Tabs

I am creating a web interface to start and stop some automated testing. The testing uses test stations where a test station can be free or actively testing. I would like to have a tab on my web interface which shows the free test stations. The free tab allows the user to commission a new test. Then the active tab shows the tests that are active and allows the user to graph the test results and stop the active test.

I have tried to use the tabs interface with code below but it does not seem to work. Is there another way to do this?

from bokeh.models.widgets import Panel, Tabs,Toggle

from bokeh.io import output_file, output_server, show

from bokeh.plotting import figure

output_server(“test”)

startButton = Toggle(label=“Start Test1”, button_type=“success”)

tab1 = Panel(child=startButton, title=“circle”)

startButton2 = Toggle(label=“Start Test2”, button_type=“success”)

tab2 = Panel(child=startButton2, title=“line”)

tabs = Tabs(tabs=[ tab1, tab2 ])

show(tabs)

Trampas,

First, I would say the use of output_server is to be discouraged. It is inherently limited in some ways, compared to the standard way of creating apps. I would say there is a decent chance it will be deprecated at some point, which is one reason we don't really demonstrate or promote its use explicitly.

Please study the examples in the examples/apps directory of the repo:

  https://github.com/bokeh/bokeh/tree/master/examples

These all have the same basic structure, and utilize best practices for Bokeh app creation.

Thanks,

Bryan

···

On Sep 12, 2016, at 7:05 AM, Trampas Stern <[email protected]> wrote:

I am creating a web interface to start and stop some automated testing. The testing uses test stations where a test station can be free or actively testing. I would like to have a tab on my web interface which shows the free test stations. The free tab allows the user to commission a new test. Then the active tab shows the tests that are active and allows the user to graph the test results and stop the active test.

I have tried to use the tabs interface with code below but it does not seem to work. Is there another way to do this?

from bokeh.models.widgets import Panel, Tabs,Toggle
from bokeh.io import output_file, output_server, show
from bokeh.plotting import figure

output_server("test")

startButton = Toggle(label="Start Test1", button_type="success")
tab1 = Panel(child=startButton, title="circle")

startButton2 = Toggle(label="Start Test2", button_type="success")
tab2 = Panel(child=startButton2, title="line")

tabs = Tabs(tabs=[ tab1, tab2 ])

show(tabs)

--
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/CADqjcyhZ_isVjZP2Xvkf63YWqwKQZXxx4XPq9dSd3Wq-wqJwQg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Sorry, the link was meant to be:

  https://github.com/bokeh/bokeh/tree/master/examples/app

Thanks,

Bryan

···

On Sep 12, 2016, at 7:05 AM, Trampas Stern <[email protected]> wrote:

I am creating a web interface to start and stop some automated testing. The testing uses test stations where a test station can be free or actively testing. I would like to have a tab on my web interface which shows the free test stations. The free tab allows the user to commission a new test. Then the active tab shows the tests that are active and allows the user to graph the test results and stop the active test.

I have tried to use the tabs interface with code below but it does not seem to work. Is there another way to do this?

from bokeh.models.widgets import Panel, Tabs,Toggle
from bokeh.io import output_file, output_server, show
from bokeh.plotting import figure

output_server("test")

startButton = Toggle(label="Start Test1", button_type="success")
tab1 = Panel(child=startButton, title="circle")

startButton2 = Toggle(label="Start Test2", button_type="success")
tab2 = Panel(child=startButton2, title="line")

tabs = Tabs(tabs=[ tab1, tab2 ])

show(tabs)

--
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/CADqjcyhZ_isVjZP2Xvkf63YWqwKQZXxx4XPq9dSd3Wq-wqJwQg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.