I am spawning a browser tab with all graphs required from runtime python code, so once displayed in the browser, I don’t expect to edit it further, but as I spawn a few seperate bokeh tabs, I want the user to be able to identify which tab is of interest via its title.
If bokeh save a file anyway, then I guess I should try manipulating the file title, I had not realised this.
However the following test code does not work either, sitll generating a tab of “Bokeh Plot”
import numpy as np
from bokeh.io import curdoc, output_file
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure, show
# Set up data
N = 200
x = np.linspace(0, 4*np.pi, N)
y = np.sin(x)
source = ColumnDataSource(data=dict(x=x, y=y))
# Set up plot
plot = figure(height=400, width=400, title="my sine wave",
tools="crosshair,pan,reset,save,wheel_zoom",
x_range=[0, 4*np.pi], y_range=[-2.5, 2.5])
plot.line('x', 'y', source=source, line_width=3, line_alpha=0.6)
output_file(filename="slider.html")
show(plot)