Creating Callbacks in Python

I’ve seen on other threads that bokeh allows for custom callback functions to be created using python code if you are running in a jupyter notebook (using output_notebook()) rather than using CustomJS but I haven’t seen any examples. Does anyone know how to do this?

Hi Nnorom,

I’m also a newbie to Bokeh but from what I have seen, To use the python code as a callback then you’ll have to use the Bokeh server.

I suspect that this will be useful to you

https://github.com/bokeh/bokeh/blob/master/examples/howto/server_embed/notebook_embed.ipynb

···

On Friday, July 27, 2018 at 1:07:52 PM UTC+2, Mr Nnorom wrote:

I’ve seen on other threads that bokeh allows for custom callback functions to be created using python code if you are running in a jupyter notebook (using output_notebook()) rather than using CustomJS but I haven’t seen any examples. Does anyone know how to do this?