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地址
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值