Python Bokeh callback external python function

天涯浪子 提交于 2020-01-03 06:19:06

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/36665977/python-bokeh-callback-external-python-function

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!