How to generate a html page from a bokeh application?

I have set up a new bokeh application by rewriting the source code of movies(http://demo.bokehplots.com/apps/movies).
It works well in local but I want to generate a html page so that people can see it in my own website.

I find “output_file” in bokeh plot can generate a static html but it seems like it does not work in bokeh serve?

A simplest page without any css is enough.

I appreciate any help.

Hi Dororthy,

Applications like the one you linked use the Bokeh server to execute actual python code in response to widgets, selections, etc. They can be embedded (from the server) in other custom HTML documents, but it is not possible to create standalone, static HTML pages for them, which is what you seem to be asking for.

It *is* still possible to have highly interactive standalone HTML pages (i.e., without a Bokeh server) using other features like CustomJS callbacks. They just won't/can't run actual Python code or callbacks. You can find much more information about those possibilities here:
  
  http://bokeh.pydata.org/en/latest/docs/user_guide/interaction.html

Thanks,

Bryan

···

On May 19, 2016, at 10:42 AM, Dorothy ZHANG <[email protected]> wrote:

I have set up a new bokeh application by rewriting the source code of movies(http://demo.bokehplots.com/apps/movies).
It works well in local but I want to generate a html page so that people can see it in my own website.
I find "output_file" in bokeh plot can generate a static html but it seems like it does not work in bokeh serve?
A simplest page without any css is enough.

I appreciate any help.

--
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/579a7eef-ebed-47fe-b6ab-9bc6700e110a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

I realized I might be misinterpreting your question. If you are asking about how to embed a Bokeh server application in your own pages, that's certainly something you can do, using autoload_server. There's an example of that here:

  https://github.com/bokeh/bokeh-demos/tree/master/happiness

Though that example also deals with authentication and per-user session manipulation, it's probably a bit more sophisticated than what you would need. But you can see an example of autoload_server in use there.

In the upcoming 0.12 release, you can create and add custom Jinja templates to Bokeh apps directly, which will probably often be even simpler than embedding (just link to the single page app on the Bokeh server).

Bryan

···

On May 19, 2016, at 11:16 AM, Bryan Van de Ven <[email protected]> wrote:

Hi Dororthy,

Applications like the one you linked use the Bokeh server to execute actual python code in response to widgets, selections, etc. They can be embedded (from the server) in other custom HTML documents, but it is not possible to create standalone, static HTML pages for them, which is what you seem to be asking for.

It *is* still possible to have highly interactive standalone HTML pages (i.e., without a Bokeh server) using other features like CustomJS callbacks. They just won't/can't run actual Python code or callbacks. You can find much more information about those possibilities here:
  
  http://bokeh.pydata.org/en/latest/docs/user_guide/interaction.html

Thanks,

Bryan

On May 19, 2016, at 10:42 AM, Dorothy ZHANG <[email protected]> wrote:

I have set up a new bokeh application by rewriting the source code of movies(http://demo.bokehplots.com/apps/movies).
It works well in local but I want to generate a html page so that people can see it in my own website.
I find "output_file" in bokeh plot can generate a static html but it seems like it does not work in bokeh serve?
A simplest page without any css is enough.

I appreciate any help.

--
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/579a7eef-ebed-47fe-b6ab-9bc6700e110a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.