neuralib.dashboard.base.BokehServer

class neuralib.dashboard.base.BokehServer[source]

Bases: object

Bokeh application server. It is a singleton class, that only one instance can hold the OS port.

Implement Note

For now, it is a single web-page application, that don’t provide any methods to route to other paths.

__init__(theme='dark_minimal')[source]
Parameters:

theme (str)

Methods

__init__([theme])

page(viewer)

start(viewer[, open_url])

start serving.

Attributes

INSTANCE

server

INSTANCE: ClassVar[BokehServer | None] = None
server: Server
__init__(theme='dark_minimal')[source]
Parameters:

theme (str)

start(viewer, open_url='/', **kwargs)[source]

start serving.

Parameters:
  • viewer (View | Application | dict[str, View | Application]) – top view

  • open_url (str | None)

page(viewer)[source]
Parameters:

viewer (View | Application)