__init__.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:parambokeh 作者: ioam 项目源码 文件源码
def _get_customjs(self, change, p_name):
        """
        Returns a CustomJS callback that can be attached to send the
        widget state across the notebook comms.
        """
        data_template = "data = {{p_name: '{p_name}', value: cb_obj['{change}']}};"
        fetch_data = data_template.format(change=change, p_name=p_name)
        self_callback = JS_CALLBACK.format(comm_id=self.comm.id,
                                           timeout=self.timeout,
                                           debounce=self.debounce)
        js_callback = CustomJS(code=fetch_data+self_callback)
        return js_callback
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号