我已经创建了一个带有各种小部件的交互式Bokeh图表,可以操纵数据。我现在想了解分享此类图表的标准方法,或者如何保存它以进行分享。
该图表是使用curdoc方法创建的,然后使用session.show()输出到Bokeh服务器。
该图表是使用curdoc方法创建的,然后使用session.show()输出到Bokeh服务器。
#create current visualization using plot p and widgets inputs
curdoc().add_root(HBox(inputs, p, width=1100))
#run the session
session = push_session(curdoc())
session.show() # open the document in a browser
session.loop_until_closed() # run forever