☰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

Callback metodologies - how to callback a python function (as opposed to js code), without polling?

Community Support
Pythonic
Pythonic

Question in short

An example from January shows ow to use polling to apply a python callback to a change in a data source. The recent documentation on defining actions and callbacks shows how to call js code on a slider widget.

Is there a way to use the action/callback mechanism to call python functions, or should I refer to the example that uses polling?

Context

For a simplified flask app that does not rely on the bokeh-server, I would like to attach the callback to a requests.post method to communicate with the server

Thanks

⌁   Link to post
Pythonic
Pythonic

As a ref for my own question, Fabio Pilger in this post seems to suggest polling is still the correct approach in 0.9x (short of dipping toes in js)

https://groups.google.com/a/continuum.io/forum/#!topic/bokeh/c4mbWMMrd94

···

On Sunday, 24 May 2015 08:21:57 UTC+1, Pythonic wrote:

Question in short

An example from January shows ow to use polling to apply a python callback to a change in a data source. The recent documentation on defining actions and callbacks shows how to call js code on a slider widget.

Is there a way to use the action/callback mechanism to call python functions, or should I refer to the example that uses polling?

Context

For a simplified flask app that does not rely on the bokeh-server, I would like to attach the callback to a requests.post method to communicate with the server

Thanks

⌁   Link to post

End of archived discussion · Replies are disabled