Hi,
I am going slowly through the taylor_server.py example with the idea of fully understanding each step and being able to explain it to my work colleagues. A few things during this reading still confuse me a bit.
Q1. The first one is that, in contrast to other examples such as legend.py from the Gallery, the app taylor_server.py uses the following plotting primitives for rendering multiple line plots on the same “plot”:
plot = Plot(x_range=xdr, y_range=ydr, plot_width=800, plot_height=400)
line_f = Line(x=“x”, y=“fy”, line_color=“blue”, line_width=2)
line_f_glyph = plot.add_glyph(source, line_f)
plot.add_layout(line_f_glyph)
which is very different from:
p1 = figure(title="Legend Example", tools=TOOLS)
p1.circle(x, y, legend="sin(x)")
p1.circle(x, 2*y, legend="2*sin(x)", color="orange", )
p1.circle(x, 3*y, legend="3*sin(x)", color="green", )
Why is that? Is the former what Bokeh used to call the low-level interface? If so, could taylor_server.py be rewritten, in principle, using the secondt and higher-level API?
Q2: What exactly is the difference between a document and a session? Can the same bokeh-server instance run multiple sessions and documents?
Q3: In the call shown below part of taylor_server.py
can I tell Bokeh to use a specific sub-URL (e.g. http://localhost:5006/<whatever_name_I_choose>)?
Thanks again for all your help,
Josh