bokeh.model API

http://bokeh.pydata.org/en/latest/docs/reference/model.html#bokeh.model.Model

class Model(**kwargs)

属性类型描述
js_event_callbacksDict ( String , List ( Instance ( CustomJS ) ) )A mapping of event names to lists of CustomJS callbacks.
js_property_callbacksDict ( String , List ( Instance ( CustomJS ) ) )A mapping of attribute names to lists of CustomJS callbacks, to be set up on BokehJS side when the document is created.
nameStringAn arbitrary, user-supplied name for this model.
subscribed_eventsList of events that are subscribed to by Python callbacks.
tagsList ( Any )An optional list of arbitrary, user-supplied values to attach to this model.
js_on_change(event, *callbacks)Attach a CustomJS callback to an arbitrary BokehJS model event.
js_on_event(event, *callbacks)
layout(side, plot)
on_change(attr, *callbacks)[source]Add a callback on this object to trigger when attr changes
references()
select(selector)Query this object and all of its references for objects that match the given selector
select_one(selector)Query this object and all of its references for objects that match the given selector.
set_select(selector, updates)Update objects that match a given selector with the specified attribute/value updates.
to_json(include_defaults)Returns a dictionary of the attributes of this object, containing only “JSON types”
to_json_string(include_defaults)Returns a JSON string encoding the attributes of this object.
trigger(attr, old, new, hint=None, setter=None)
document
ref

http://bokeh.pydata.org/en/latest/docs/reference/models/callbacks.html

class Callback(**kwargs)

class CustomJS(**kwargs)

属性类型描述
argsDict ( String , Instance ( Model ) )做图对象的对应参数
codeStringargs的参数可以在此使用。cb_obj参数对应回调的触发值,cb_data储存了工具中的数据。
from_coffeescript(code, args={})
from_py_func(func)使用PyScript将python函数转换为PyScript

class OpenURL(**kwargs)

属性类型描述
urlStringurl地址
ModuleNotFoundError: No module named 'bokeh.plotting.helpers'是一个Python错误信息,它表示在当前环境中找不到名为'bokeh.plotting.helpers'的模块。这个错误通常发生在尝试导入或使用某个模块时,但该模块并未正确安装或导入路径不正确。 根据您提供的引用内容,这些引用并没有涉及到'bokeh.plotting.helpers'模块。因此,我无法提供与该错误有关的具体解决方法。然而,通常解决这个错误的方法是确保您已正确安装了所需的模块,并且模块的名称和导入路径是正确的。 您可以尝试使用以下步骤来解决这个错误: 1. 检查您的代码或脚本中是否正确导入了'bokeh.plotting.helpers'模块,并且模块名称和导入路径没有拼写错误。 2. 确保您已正确安装了'bokeh'库。您可以使用pip命令来安装它:pip install bokeh 3. 如果您已经安装了'bokeh'库,但仍然遇到该错误,那么可能是因为您的Python环境配置不正确。您可以尝试重新安装或更新您的Python环境。 4. 如果以上步骤仍未解决问题,那么可能是因为'bokeh.plotting.helpers'模块不是您当前环境中可用的模块。您可以尝试查找并安装该模块的正确版本,或者尝试使用其他类似的模块替代。 请注意,由于我无法访问您的代码或环境,所以我只能提供一般的解决方法。如果您需要更具体的帮助,建议您查阅相关的文档或寻求专业人士的帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [Unreal Engine 4.20 Release Notes](https://blog.csdn.net/pizi0475/article/details/81636150)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值