☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Standalone Server Embedding Without Browsers

Community Support
Jianfei_Gao
Jianfei_Gao

Is it possible use standalone server embedding code on a cluster without any browser. For now, I use the examples/howto/server_embed/standalone_embed.py code directly on my cluster, and it will trigger ELink (I have no idea what it is) and got stuck.
To be specific, suppose I already had a Document, and I want to serve it on localhost:5006 (or other ports) without opening a browser by python test.py, then later I can access that port from remote to open the web page. How should I write test.py?

⌁   Link to post
Jianfei_Gao
Jianfei_Gao

I am stupid. It is just a reference reading work.


from bokeh.server.server import Server

def _service(doc):

viz_nvidia = VizNVIDIASMIInterface()

doc.add_periodic_callback(viz_nvidia.update, 100)

doc.add_root(viz_nvidia.layout)

server = Server({'/': _service})

server.run_until_shutdown()

···

On Fri, Dec 14, 2018 at 12:25 AM Jianfei Gao gaop462@gmail.com wrote:

Is it possible use standalone server embedding code on a cluster without any browser. For now, I use the examples/howto/server_embed/standalone_embed.py code directly on my cluster, and it will trigger ELink (I have no idea what it is) and got stuck.
To be specific, suppose I already had a Document, and I want to serve it on localhost:5006 (or other ports) without opening a browser by python test.py, then later I can access that port from remote to open the web page. How should I write test.py?

–

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 bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/1a8d73fc-b51a-4bc2-bfd8-e7494c2de017%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Bryan
Bryan

Hi,

You are definitely not stupid, there is simply a lot of material and it's not always obvious where to start. If there is anything we can do to make things more discoverable in the documentation, please let us know.

Thanks,

Bryan

···

On Dec 16, 2018, at 22:26, Jianfei Gao <gaop462@gmail.com> wrote:

I am stupid. It is just a reference reading work.

from bokeh.server.server import Server
def _service(doc):
    viz_nvidia = VizNVIDIASMIInterface()
    doc.add_periodic_callback(viz_nvidia.update, 100)
    doc.add_root(viz_nvidia.layout)
server = Server({'/': _service})
server.run_until_shutdown()

On Fri, Dec 14, 2018 at 12:25 AM Jianfei Gao <gaop462@gmail.com> wrote:
Is it possible use standalone server embedding code on a cluster without any browser. For now, I use the examples/howto/server_embed/standalone_embed.py code directly on my cluster, and it will trigger ELink (I have no idea what it is) and got stuck.
To be specific, suppose I already had a Document, and I want to serve it on localhost:5006 (or other ports) without opening a browser by `python test.py`, then later I can access that port from remote to open the web page. How should I write test.py?

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/1a8d73fc-b51a-4bc2-bfd8-e7494c2de017%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CABO%3Dv8zA%3Dk9-Fh%3DVp8Xcquza1q9DrvZ9y4pE4hZr_iSJ0gqv8g%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled