0
我试图通过组件回jQuery.ajax
调用,然后设置HTML。散景组件渲染通过jquery.success
背景虚化代码:
layout = column(plot)
script, div = components(layout)
res_json = jsonify(dict(script=script, div=div))
return res_json, 200, {'Content-Type': 'application/json'}
jQuery的
success: function(data) {
$("#bokeh_script").html(data["script"]);
$("#bokeh_div").html(data["div"]);
}
我已经做了一些阅读和它看起来像它可能是一个问题所有事物的加载顺序。我也很好奇,如果你甚至可以传递一个像.html(<script>)
这样的标签并且它仍然载入?谢谢。