☰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

Rendering finished callback

Community Support
p-himik
p-himik

Hi,

Is there any callback that’s called when Bokeh finishes initial rendering?

If not, how hard would it be to implement it?

I’ve asked pretty much the same question on Gitter and was directed here.

⌁   Link to post
Mateusz_Paprocki
Mateusz_Paprocki

Hi,

···

On Sat, Feb 18, 2017 at 6:17 PM, Eugene Pakhomov p1himik@gmail.com wrote:

Hi,

Is there any callback that’s called when Bokeh finishes initial rendering?

If not, how hard would it be to implement it?

if you have a single, standalone (no server) plot with no external resources (gmaps, tiles, images or anything else that’s available with a delay), then it’s easy and such an event was exposed just a few days ago, but mostly for testing purpose at this point (see [1]). Otherwise, I’m working on a more generic solution, because we need this for our testing infrastructure, to improve its reliability. This should arrive sooner than later, but I can’t give an estimate right now.

[1] https://github.com/bokeh/bokeh/blob/master/tests/plugins/phantomjs_screenshot.js#L73

Mateusz

I’ve asked pretty much the same question on Gitter and was directed here.

–

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/980c830f-a3ff-483b-803e-fcb712ae6a89%40continuum.io.

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

⌁   Link to post
Bryan
Bryan

Once this PR for a more general events system is merged:

  Generalized event system by jlstevens · Pull Request #5941 · bokeh/bokeh · GitHub

it might be straightforward to have render functions fire an event at the end (to which a callback could easily be added, that's what the PR provides).

Bryan

···

On Feb 24, 2017, at 11:00, Mateusz Paprocki <mateusz.paprocki@continuum.io> wrote:

Hi,

On Sat, Feb 18, 2017 at 6:17 PM, Eugene Pakhomov <p1himik@gmail.com> wrote:
Hi,

Is there any callback that's called when Bokeh finishes initial rendering?
If not, how hard would it be to implement it?

if you have a single, standalone (no server) plot with no external resources (gmaps, tiles, images or anything else that's available with a delay), then it's easy and such an event was exposed just a few days ago, but mostly for testing purpose at this point (see [1]). Otherwise, I'm working on a more generic solution, because we need this for our testing infrastructure, to improve its reliability. This should arrive sooner than later, but I can't give an estimate right now.

[1] https://github.com/bokeh/bokeh/blob/master/tests/plugins/phantomjs_screenshot.js#L73

Mateusz

I've asked pretty much the same question on Gitter and was directed here.

--
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/980c830f-a3ff-483b-803e-fcb712ae6a89%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/CANFzp8jE1owXJ03uMP7Oe1dxPd%2BOXT635LVRYMF%3DFZPA-mhBKw%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled