bokeh.server.views¶
autoload_js_handler¶
Provide a request handler that returns a page displaying a document.
-
class
bokeh.server.views.autoload_js_handler.
AutoloadJsHandler
(tornado_app, *args, **kw)¶ Implements a custom Tornado handler for the autoload JS chunk
doc_handler¶
Provide a request handler that returns a page displaying a document.
-
class
bokeh.server.views.doc_handler.
DocHandler
(tornado_app, *args, **kw)¶ Implements a custom Tornado handler for document display page
autoload_metadata_handler¶
Provide a request handler that returns a json with metadata information from the application
-
class
bokeh.server.views.metadata_handler.
MetadataHandler
(tornado_app, *args, **kw)¶ Implements a custom Tornado handler for document display page
root_handler¶
Provide a Request handler that lists the application (if more than one) or (if only one) redirects to the route of that applications.
-
class
bokeh.server.views.root_handler.
RootHandler
(application, request, **kwargs)¶ Implements a custom Tornado handler to display the available applications If only one application it redirects to that application route
session_handler¶
Abstract request handler that handles bokeh-session-id
-
class
bokeh.server.views.session_handler.
SessionHandler
(tornado_app, *args, **kw)¶ Implements a custom Tornado handler for document display page
static_handler¶
Provide a request handler that returns a page displaying a document.
-
class
bokeh.server.views.static_handler.
StaticHandler
(tornado_app, *args, **kw)¶ Implements a custom Tornado static file handler for BokehJS JavaScript and CSS resources.
ws¶
Provide a web socket handler for the Bokeh Server application.
-
class
bokeh.server.views.ws.
WSHandler
(tornado_app, *args, **kw)¶ Implements a custom Tornado WebSocketHandler for the Bokeh Server.
-
on_close
()¶ Clean up when the connection is closed.
-
on_message
(*args, **kwargs)¶ Process an individual wire protocol fragment.
The websocket RFC specifies opcodes for distinguishing text frames from binary frames. Tornado passes us either a text or binary string depending on that opcode, we have to look at the type of the fragment to see what we got.Parameters: fragment (unicode or bytes) – wire fragment to process
-
open
()¶ Initialize a connection to a client.
-
send_message
(*args, **kwargs)¶ Send a Bokeh Server protocol message to the connected client.
Parameters: message (Message) – a message to send
-
write_message
(*args, **kwargs)¶ Override parent write_message with a version that acquires a write lock before writing.
-