Standalone Server Embedding Without Browsers

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?

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 [email protected] 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 [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/1a8d73fc-b51a-4bc2-bfd8-e7494c2de017%40continuum.io.

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

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 <[email protected]> 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 <[email protected]> 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 [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/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 [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/CABO%3Dv8zA%3Dk9-Fh%3DVp8Xcquza1q9DrvZ9y4pE4hZr_iSJ0gqv8g%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.