☰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

Creating Callbacks in Python

Community Support
Mr_Nnorom
Mr_Nnorom

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?

⌁   Link to post
Mulan-94
Mulan-94

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?

⌁   Link to post

End of archived discussion · Replies are disabled