Correct way to launch server within codebase

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 from the command prompt.


I think I’m looking for an example of how to properly use output_server

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:

On 7/19/16 8:28 AM, rick wrote:

    I think I'm looking for an example of how to

properly use 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 [](

  For more options, visit [](

Sarah Bird
Developer, Bokeh

      ![Continuum Analytics](

I’m trying to do something more simple, similair to the demo, but I’m having a disconnect with executing it from within the script.

Trying to do auto launch like show() but with push().

Going about it like this:




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:


session = push_session(curdoc())