Python Bokeh回调外部python函数 [英] Python Bokeh callback external python function

查看:98
本文介绍了Python Bokeh回调外部python函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想调用一个外部python函数来获取我无法使用javascript数学的callcack修改. 我该怎么办?

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?

推荐答案

不可能直接从JavaScript回调中调用python函数. JS回调代码正在浏览器中执行,该过程与python解释器不同.如果您希望拥有用户交互,工具或回调来触发真正的,实际的python函数,则必须使用Bokeh服务器(实际上这是它的设计目的).

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

这篇关于Python Bokeh回调外部python函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆