Bokeh 0.7.1: Dynamically Add Plot to Bokeh-Server Generated Existing Page
问题 I'm using bokeh-server to handle data streaming via tcp to plots that I currently have displaying to browser using output_server. I'd like to be able to dynamically add more plots to the current browser page, as the data comes through on the socket. Part of my trouble is that I don't fully understand how cursession() and curdoc() work/how they are different. My current code looks like this: plots = [] if create_new_plot: plots.append(create_new_plot_def()) if open_new_tab: show(plots) open