libgs.visualisation.TrackDash.make_doc¶
-
TrackDash.
make_doc
(doc)¶ Set up the document. This function is called once for each client connection.
Variables are therefore kept local in this scope rather than added to the class as method which would have meant that multiple users were served the same variable (ColumnDataSource or Figure) something that is not permitted by Bokeh.
Note
This method is the bokeh makefunction (see
bokeh.application.handlers.function.FunctionHandler
) that will be passed to thebokeh.application.Application
constructor.While a derived class may overload this method it is not recommended to do so. Instead you can initialise this class with the layout_function parameter in order to lay out the LivePlots.