How to add a video as a background for a bokeh plot in python?

Hi all,

I am planning to create a plot (preferably column) and I want an initial animation where the columns rises and a small clip (0:11 s) plays in the background. Is it possible to do in Bokeh?

I tried googling but could not find any answers so decided to post here :slight_smile:

Thanks in advance!

Hi,

I don't think anyone has ever done this, as least no one else has ever asked about it, or demonstrated it to my knowledge. There is certainly nothing built in to Bokeh itself to support this use case. The only options I can imagine putting the video player in a div and using the standard bokeh embed functions to embed a transparent plot on top. Unfortunately, I think you will struggle to get things to line up in a precise way, however.

Thanks,

Bryan

路路路

On Feb 5, 2019, at 20:19, Raivat Shah <[email protected]> wrote:

Hi all,

I am planning to create a plot (preferably column) and I want an initial animation where the columns rises and a small clip (0:11 s) plays in the background. Is it possible to do in Bokeh?

I tried googling but could not find any answers so decided to post here :slight_smile:

Thanks in advance!

--
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/db1843a2-fb98-4192-9dbd-d2e35e310909%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan,

Thanks so much for your message. I will try the embed feature :slight_smile:

Btw, I am taking your class on DataCamp right now and it is amazing! Thanks so much for teaching me!

路路路

On Wednesday, February 6, 2019 at 10:16:22 PM UTC+8, Bryan Van de ven wrote:

Hi,

I don鈥檛 think anyone has ever done this, as least no one else has ever asked about it, or demonstrated it to my knowledge. There is certainly nothing built in to Bokeh itself to support this use case. The only options I can imagine putting the video player in a div and using the standard bokeh embed functions to embed a transparent plot on top. Unfortunately, I think you will struggle to get things to line up in a precise way, however.

Thanks,

Bryan

On Feb 5, 2019, at 20:19, Raivat Shah [email protected] wrote:

Hi all,

I am planning to create a plot (preferably column) and I want an initial animation where the columns rises and a small clip (0:11 s) plays in the background. Is it possible to do in Bokeh?

I tried googling but could not find any answers so decided to post here :slight_smile:

Thanks in advance!


You received this message because you are subscribed to the Google Groups 鈥淏okeh 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/db1843a2-fb98-4192-9dbd-d2e35e310909%40continuum.io.

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