bokeh embed tutorial/example

Does anyone know of a simple example on how to embed Bokeh into html? I’ve read the documentation and it’s not quite obvious to me. I’ve looked at the Gapminder example, but I can’t see in the code, where the templates directory with the index.html file is referenced.

I just want to be able to change the background colour and add some images.

Thanks!

The gapminder app isn’t really an example of embedding. It is an example of a directory format app using bokeh server. There is some documentation on directory format apps here that explains how this works better than I can.

Hope that helps,

Tyler

···

On Mon, Mar 27, 2017 at 9:41 AM, Tommy Carstensen [email protected] wrote:

Does anyone know of a simple example on how to embed Bokeh into html? I’ve read the documentation and it’s not quite obvious to me. I’ve looked at the Gapminder example, but I can’t see in the code, where the templates directory with the index.html file is referenced.

https://github.com/bokeh/bokeh/blob/master/examples/app/gapminder/main.py

I just want to be able to change the background colour and add some images.

Thanks!

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/0489ea47-0f51-4749-84d9-20811737bb09%40continuum.io.

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

Hi Tyler,

It turned out to be quite easy. I did this:
layout_show = bokeh.layouts.layout([

[bokeh.models.Div(text=’
’)],

[bokeh.layouts.row(widgets, plots)],

])

After checking the IMDB Movies example:
https://github.com/bokeh/bokeh/blob/master/examples/app/movies/main.py

Thanks!

···

On Mon, Mar 27, 2017 at 9:41 AM, Tommy Carstensen [email protected] wrote:

Does anyone know of a simple example on how to embed Bokeh into html? I’ve read the documentation and it’s not quite obvious to me. I’ve looked at the Gapminder example, but I can’t see in the code, where the templates directory with the index.html file is referenced.

https://github.com/bokeh/bokeh/blob/master/examples/app/gapminder/main.py

I just want to be able to change the background colour and add some images.

Thanks!

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/0489ea47-0f51-4749-84d9-20811737bb09%40continuum.io.

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