I’ve been digging through the examples for connecting to a local server.
Question, what is the proper way to push a session internally, without running bokeh serve --show foo.py from the command prompt.
-rick
I’ve been digging through the examples for connecting to a local server.
Question, what is the proper way to push a session internally, without running bokeh serve --show foo.py from the command prompt.
-rick
If you could provide more details it would be easier to point you
in the right direction. Maybe the happiness demo has useful stuff
in it; or maybe something simpler:
https://github.com/bokeh/bokeh-demos
On 7/19/16 8:28 AM, rick wrote:
I think I'm looking for an example of how to
properly use bokeh.io output_server
–
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/687b38ea-06f4-451f-885d-773cc474f60c%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/687b38ea-06f4-451f-885d-773cc474f60c%40continuum.io?utm_medium=email&utm_source=footer). For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
–
Sarah Bird
Developer, Bokeh
[
![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
](http://continuum.io)
I’m trying to do something more simple, similair to the weather.py demo, but I’m having a disconnect with executing it from within the script.
Trying to do auto launch like bokeh.io show() but with push().
Going about it like this:
output_server(‘foo’)
…
curdoc().add_root(column(figx,sliderx))
push()
manually point browser to active session
Do I need something after pushing the update that will autolaunch the browser with the active session?
Ok, sorry for the public learning exercise… I accomplished what I was wanting to do with the following:
curdoc().add_root(column(figx,sliderx))
session = push_session(curdoc())
session.show()
session.loop_until_closed()