bokeh.model API
http://bokeh.pydata.org/en/latest/docs/reference/model.html#bokeh.model.Model
class Model(**kwargs)
属性 | 类型 | 描述 |
---|---|---|
js_event_callbacks | Dict ( String , List ( Instance ( CustomJS ) ) ) | A mapping of event names to lists of CustomJS callbacks. |
js_property_callbacks | Dict ( 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. |
name | String | An arbitrary, user-supplied name for this model. |
subscribed_events | List of events that are subscribed to by Python callbacks. | |
tags | List ( 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)
属性 | 类型 | 描述 |
---|---|---|
args | Dict ( String , Instance ( Model ) ) | 做图对象的对应参数 |
code | String | args的参数可以在此使用。cb_obj参数对应回调的触发值,cb_data储存了工具中的数据。 |
from_coffeescript(code, args={}) | ||
from_py_func(func) | 使用PyScript将python函数转换为PyScript |
class OpenURL(**kwargs)
属性 | 类型 | 描述 |
---|---|---|
url | String | url地址 |
bokeh.model API相关推荐
- MXNet的Model API
MXNet的API mxnet里面的model API不是真的API,它只不过是一个对ndarray的一个封装,使其更容易使用. 训练一个模型 为了训练一个模型,你需要遵循以下两步,第一步是使用sym ...
- 【小白学习keras教程】八、Sequential Model和模型函数API两种模型建立方法
@Author:Runsen 文章目录 Load dataset Sequential Model API 方法1 方法2 模型函数API 单输入输出 合并图层 1.连接 2. add, subtra ...
- keras:Sequential API 和 Function API
在使用keras构建深度学习的模型时,遇到了一些关于Sequential API和Function API的疑问. 在Keras 0.x中,模型其实有两种,一种叫Sequential,称为序贯模型,也 ...
- MySQL8.0 · 优化器新特性 · Cost Model, 直方图及优化器开销优化
2019独角兽企业重金招聘Python工程师标准>>> MySQL当前已经发布到MySQL8.0版本,在新的版本中,可以看到MySQL之前被人诟病的优化器部分做了很多的改动,由于笔者 ...
- SharePoint REST API - 确定REST端点URL
SharePoint REST端点URI的结构 在你能够通过REST访问SharePoint资源之前,首先你要做的就是找出对应的URI端点,如果你对Client API熟悉,有些时候也可以参考Clie ...
- GNOME API 参考
GitHub:https://github.com/GNOME https://developer.gnome.org/references 目录 API 参考 核心库 核心 用户界面 多媒体 交流 ...
- jms.jar 2.0_JMS API概述:JMS 1.x和JMS 2.x
jms.jar 2.0 Before going to read this post, please read my previous posts about JMS basics. And also ...
- Android 11 功能和 API 概览
Android 11 面向开发者引入了一些出色的新功能和 API.以下几部分内容可帮助您了解适用于您的应用的功能并开始使用相关 API. 有关新增.修改和移除的 API 的详细列表,请参阅 API 差 ...
- Android 11 新特性和API兼容
这个文档主要产品层面,新的特性..兄弟blog,Android11的Api变化和迁移变化. 1,新特性 1.1,设备控件 Android 11 包含一个新的 ControlsProviderServi ...
最新文章
- openresty开发系列11--openresty的api入门
- 百度模糊搜索怎么实现_百度搜索广告是什么?百度搜索竞价广告投放推广效果怎么样?...
- Spring+Spring Boot+Mybatis框架注解解析
- mysql连表删除语句_MySQL中联表更新与删除的语法介绍
- c#项目遇到的问题及解决(1)
- PyTorch - torch.nn.PReLU
- 推荐一款Mac远程桌面工具——Parallels Client(免费)
- 螳螂有6条腿C语言,一只蜈蚣40只脚,一只螳螂有6只脚,现有蜈蚣和螳螂共35只,合计脚822只,蜈蚣和螳螂各多少只?...
- 《数学之美》阅读笔记1
- 前端--HTML,常用标签学习
- Python与HTML倾情打造情人节示爱网站:愿天下有情人终成眷属!
- 人与自然超越彩虹-下
- mysql出现LF怎么办,MySQL的LF_HASH
- 双路服务器56核系统推荐,华硕发布双路志强主板:最高支持56核,112线程
- Semantic UI 之 对话框 modal
- oracle例外使用
- 计算机与医药信息学,浙江大学药物信息学研究所
- 英语国际音标教学视频
- 软件测试 (7) web项目测试
- 小米青春版使用OpenWrt实现无线中继功能
热门文章
- php 写入套节字,php – 写入套接字并处理损坏的管道
- 软件需求文档范例_【设计API系列】 一文了解常见的事件驱动APIs范例
- 1000道Python题库系列分享17(17道判断题)
- Python使用更相减损术计算两个整数的最大公约数
- Python中表达式int('0x10, 36)的值是。。。
- 全国Python科研应用专题实操培训班通知
- Python使用tensorflow中梯度下降算法求解变量最优值
- 怎么在github上下载项目_Github上Top20 Python与机器学习开源项目汇总
- linux服务器安装gmt,linux 安装GMT详解 (zhuan)
- android 保存图片出现2张_OriCell第三届细胞培养图片大赛来啦~ - 实验动物