I’m confused as how to actually embed a bokeh plot in a web page. I understand how to run a bokeh plot on the local server using “bokeh serve xxx.py,” but how do you actually create a web page like this: https://demo.bokehplots.com/apps/sliders? I tried putting the bokeh server in a jupyter notebook, but the interactive sliders don’t work. Do you have any idea how to proceed?
Archived discussions · Captured October 28, 2026
Embed Interactive Bokeh Plot in Web Page
There are lots of examples of bokeh apps in the source code repository on github:
https://github.com/bokeh/bokeh/tree/master/examples/app
If you clone the repository, you can navigate to the directory and launch the examples, as a served webpage with e.g., bokeh serve --show sliders.py
See the README files in that folder for more info.
-paul
···
On Thu, Jan 11, 2018 at 9:09 PM, chousemouse charleszhangh@gmail.com wrote:
I’m confused as how to actually embed a bokeh plot in a web page. I understand how to run a bokeh plot on the local server using “bokeh serve xxx.py,” but how do you actually create a web page like this: https://demo.bokehplots.com/apps/sliders? I tried putting the bokeh server in a jupyter notebook, but the interactive sliders don’t work. Do you have any idea how to proceed?
–
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/59985166-cfce-45f3-9476-c7853c32b44c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,
For embedding a Bokeh server app run using a separate "bokeh serve" process, use the "sever_document" function described here:
https://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#server-data
(Please ignore the old info about "autoload_server" which is deprecated and will be removed soon)
Alternatively you can embed a bokeh server as a library in a flask, etc. app:
Bokeh server — Bokeh 3.3.2 Documentation
Thanks,
Bryan
···
On Jan 11, 2018, at 21:09, chousemouse <charleszhangh@gmail.com> wrote:
I'm confused as how to actually embed a bokeh plot in a web page. I understand how to run a bokeh plot on the local server using "bokeh serve xxx.py," but how do you actually create a web page like this: https://demo.bokehplots.com/apps/sliders? I tried putting the bokeh server in a jupyter notebook, but the interactive sliders don't work. Do you have any idea how to proceed?
--
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/59985166-cfce-45f3-9476-c7853c32b44c%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

End of archived discussion · Replies are disabled