ssm
ssm

Reputation: 640

Python Bokeh callback external python function

I would like to call an external python function to get the callcack modification which I cannot using javascript math. How can I do this?

Upvotes: 0

Views: 923

Answers (1)

bigreddot
bigreddot

Reputation: 34568

It is not possible to call python functions directly from JavaScript callbacks. The JS callback code is executing in the browser, which is not the same process as a python interpreter. If you want to have user interactions, or tools, or callbacks that trigger real, actual python functions, you will have to use the Bokeh server (this is in fact what it is designed to do).

Upvotes: 3

Related Questions