spade_bokeh package

Submodules

spade_bokeh.spade_bokeh module

class spade_bokeh.spade_bokeh.BokehServerMixin(*args, **kwargs)[source]

Bases: object

This is the Mixin to inherit from when you create your agent.

class spade_bokeh.spade_bokeh.BokekServer(agent)[source]

Bases: object

add_plot(path, func)[source]

Registers a new plot in the bokeh server. Args:

path: path where the plot will respond to queries func: the function that renders the plot.
bokeh_worker()[source]
get_plot_script(path)[source]

Returns the necessary javascript to render a plot Args:

path (str): the path with which the plot was registered in the server.
Returns:
A string with the javascript code to render the plot.
start(hostname='localhost', port=5006)[source]

Starts the bokeh server. Args:

hostname (str): hostname of the server. Must be the same where the agent is running. Defaults to “localhost” port (int): port of the server. Defaults to 5006.
stop()[source]

Stops the Bokeh server.

Module contents

Top-level package for SPADE Bokeh Server.