☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

How to deploy an animated plot to a public website?

Community Support
Tomaz_Solc
Tomaz_Solc

Hi everyone

I've used Bokeh with great success in a few demonstrations with
real-time graphs. The setup I've used was a locally running bokeh-server
and a script based on the animated.py example.

Now I would like to place one of these on a public website. What is the
prefered way of doing that currently? Running bokeh-server on a publicly
accessible port seems to be a bad idea. If not for other reasons, then
because anyone can click the "recycle bin" icon in the interface and
delete the plot.

I'm not very picky regarding how the plots are shown. I've used
autoload_server() previously to embed live plots in a
statically-generated HTML page. However, I need to push data from a
Python script to the browser, so doing animation on the browser side in
Javascript is not an option.

Thanks
Tomaž

···

--
Tomaž Šolc, research assistant
SensorLab, Jožef Stefan Institute
http://sensorlab.ijs.si
mail: tomaz.solc@ijs.si
blog: Avian’s Blog: The more I know, the less I understand

⌁   Link to post
Bryan
Bryan

Hi Tomaž

If you embed a plot using autoload_server, you should still be able to push data from a python process to the server, and have the plot update. Are you saying this is not happening? If so, please give a bit more info as that is either a bug or some misconfiguration that we should probably address in the docs.

Bryan

···

On Dec 11, 2014, at 8:16 AM, Tomaž Šolc <tomaz.solc@ijs.si> wrote:

Hi everyone

I've used Bokeh with great success in a few demonstrations with
real-time graphs. The setup I've used was a locally running bokeh-server
and a script based on the animated.py example.

Now I would like to place one of these on a public website. What is the
prefered way of doing that currently? Running bokeh-server on a publicly
accessible port seems to be a bad idea. If not for other reasons, then
because anyone can click the "recycle bin" icon in the interface and
delete the plot.

I'm not very picky regarding how the plots are shown. I've used
autoload_server() previously to embed live plots in a
statically-generated HTML page. However, I need to push data from a
Python script to the browser, so doing animation on the browser side in
Javascript is not an option.

Thanks
Tomaž

--
Tomaž Šolc, research assistant
SensorLab, Jožef Stefan Institute
http://sensorlab.ijs.si
mail: tomaz.solc@ijs.si
blog: http://www.tablix.org/~avian/blog

--
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/5489994A.6050801%40ijs.si\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Tomaz_Solc
Tomaz_Solc

Hi Bryan,

If you embed a plot using autoload_server, you should still be able
to push data from a python process to the server, and have the plot
update. Are you saying this is not happening? If so, please give a
bit more info as that is either a bug or some misconfiguration that
we should probably address in the docs.

Oh, sorry. I just checked and embedded plots indeed keep updating even
after they have been deleted from the bokeh-server web interface. I'm
not sure why I thought otherwise.

So from the standpoint of security there should be no issue with running
a publicly accessible bokeh-server?

Thanks
Tomaž

Hi everyone

I've used Bokeh with great success in a few demonstrations with
real-time graphs. The setup I've used was a locally running
bokeh-server and a script based on the animated.py example.

Now I would like to place one of these on a public website. What is
the prefered way of doing that currently? Running bokeh-server on a
publicly accessible port seems to be a bad idea. If not for other
reasons, then because anyone can click the "recycle bin" icon in
the interface and delete the plot.

I'm not very picky regarding how the plots are shown. I've used
autoload_server() previously to embed live plots in a
statically-generated HTML page. However, I need to push data from
a Python script to the browser, so doing animation on the browser
side in Javascript is not an option.

Thanks Tomaž

-- Tomaž Šolc, research assistant SensorLab, Jožef Stefan
Institute http://sensorlab.ijs.si mail: tomaz.solc@ijs.si blog:
http://www.tablix.org/~avian/blog

-- 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/5489994A.6050801%40ijs.si\.

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

···

On 11. 12. 2014 14:41, Bryan Van de Ven wrote:

On Dec 11, 2014, at 8:16 AM, Tomaž Šolc <tomaz.solc@ijs.si> wrote:

--
Tomaž Šolc, research assistant
SensorLab, Jožef Stefan Institute

mail: tomaz.solc@ijs.si
blog: http://www.tablix.org/~avian/blog

⌁   Link to post
Hugo_Shi
Hugo_Shi

This story isn't really great right now - Bokeh has 2 backends right now for authentication - single and multiuser. With single user, everyone can see everything, so hosting things like that will work - but you don't have security. The multi user case has security but no notion of publishing, and so other users can't see the plots that you create.

Adding access controls around publishing is on the roadmap but isn't implemented yet.

···

On Thu 11 Dec 2014 11:49:36 AM EST, Tomaž Šolc wrote:

Hi Bryan,

On 11. 12. 2014 14:41, Bryan Van de Ven wrote:

If you embed a plot using autoload_server, you should still be able
to push data from a python process to the server, and have the plot
update. Are you saying this is not happening? If so, please give a
bit more info as that is either a bug or some misconfiguration that
we should probably address in the docs.

Oh, sorry. I just checked and embedded plots indeed keep updating even
after they have been deleted from the bokeh-server web interface. I'm
not sure why I thought otherwise.

So from the standpoint of security there should be no issue with running
a publicly accessible bokeh-server?

Thanks
Tomaž

On Dec 11, 2014, at 8:16 AM, Tomaž Šolc <tomaz.solc@ijs.si> wrote:

Hi everyone

I've used Bokeh with great success in a few demonstrations with
real-time graphs. The setup I've used was a locally running
bokeh-server and a script based on the animated.py example.

Now I would like to place one of these on a public website. What is
the prefered way of doing that currently? Running bokeh-server on a
publicly accessible port seems to be a bad idea. If not for other
reasons, then because anyone can click the "recycle bin" icon in
the interface and delete the plot.

I'm not very picky regarding how the plots are shown. I've used
autoload_server() previously to embed live plots in a
statically-generated HTML page. However, I need to push data from
a Python script to the browser, so doing animation on the browser
side in Javascript is not an option.

Thanks Tomaž

-- Tomaž Šolc, research assistant SensorLab, Jožef Stefan
Institute http://sensorlab.ijs.si mail: tomaz.solc@ijs.si blog:
http://www.tablix.org/~avian/blog

-- 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/5489994A.6050801%40ijs.si\.

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

⌁   Link to post

End of archived discussion · Replies are disabled