`bokeh serve` and resources' root url

Hi,

When running a server with bokeh serve, the resources are referenced in the HTML relatively to the server’s IP (or domain). Instead, I’d like to host the resources at a different location altogether (e.g. on a CDN), but from looking at the code, I’m not sure if that’s possible.

Ideally, I would have liked to be able to specify the resources’ root url directly from the command line, for example:

$ bokeh serve --resources-root-url=https://my-cdn-server.com myapp.py

Do you know of a workaround for this? Additionally, would you consider it a reasonable idea to add the --resources-root-url suggested above?

Thanks!

Julien

dear sir/madam
can i know how to install bokeh nodejs

···

On Sun, Jun 18, 2017 at 4:04 PM, jphalip via Bokeh Discussion - Public [email protected] wrote:

Hi,

When running a server with bokeh serve, the resources are referenced in the HTML relatively to the server’s IP (or domain). Instead, I’d like to host the resources at a different location altogether (e.g. on a CDN), but from looking at the code, I’m not sure if that’s possible.

Ideally, I would have liked to be able to specify the resources’ root url directly from the command line, for example:

$ bokeh serve --resources-root-url=https://my-cdn-server.com myapp.py

Do you know of a workaround for this? Additionally, would you consider it a reasonable idea to add the --resources-root-url suggested above?

Thanks!

Julien

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/f9702a0a-37e1-4160-8da0-04887920df2d%40continuum.io.

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

Hi,

If you mean literally running Bokeh server side in Node, AFAIK that will not work yet. BokehJS is a big and complex library that relies on actual things like real HTML canvas objects in the browser. It's something we'd be interested in trying to make wok, and have previous made cursory but unsuccessful attempts at looking at how it might be done, but have not had the opportunity to pursue fully.

Bryan

···

On Jun 19, 2017, at 05:41, leela vathi <[email protected]> wrote:

dear sir/madam
          can i know how to install bokeh nodejs

On Sun, Jun 18, 2017 at 4:04 PM, jphalip via Bokeh Discussion - Public <[email protected]> wrote:
Hi,

When running a server with `bokeh serve`, the resources are referenced in the HTML relatively to the server's IP (or domain). Instead, I'd like to host the resources at a different location altogether (e.g. on a CDN), but from looking at the code, I'm not sure if that's possible.

Ideally, I would have liked to be able to specify the resources' root url directly from the command line, for example:

$ bokeh serve --resources-root-url=https://my-cdn-server.com myapp.py

Do you know of a workaround for this? Additionally, would you consider it a reasonable idea to add the --resources-root-url suggested above?

Thanks!

Julien

--
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/f9702a0a-37e1-4160-8da0-04887920df2d%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/CAA0r%2BorFpMHH_BJit%2BiWjRHnz%3DzX2Eu6hiqD0sPOU2i%3DGGXxkg%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.