This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

bokeh.protocol.messages.server_info_reply — Bokeh 0.12.14 documentation

Source code for bokeh.protocol.messages.server_info_reply

from __future__ import absolute_import

from bokeh import __version__

from ..message import Message
from . import register

_VERSION_INFO = {
    'bokeh'  : __version__,
    'server' : __version__,
}

@register
[docs]class server_info_reply_1(Message): ''' Define the ``SERVER-INFO-REPLY`` message (revision 1) for replying to Server info requests from clients. The ``content`` fragment of for this message is has the form: .. code-block:: python { 'version_info' : { 'bokeh' : <bokeh library version> 'server' : <bokeh server version> } } ''' msgtype = 'SERVER-INFO-REPLY' revision = 1 @classmethod
[docs] def create(cls, request_id, **metadata): ''' Create an ``SERVER-INFO-REPLY`` message Args: request_id (str) : The message ID for the message that issues the info request Any additional keyword arguments will be put into the message ``metadata`` fragment as-is. ''' header = cls.create_header(request_id=request_id) content = { 'version_info': _VERSION_INFO, } return cls(header, metadata, content)