neuralib.dashboard.example_multi

class neuralib.dashboard.example_multi.Top[source]

Bases: View

property title: str
setup()[source]

setup application top view. This function is called by BokehServer only once when the server created and opened the web browser.

In this function, you need to initialize the UI components and return the layout.

Return type:

Model

get_arg(key)
Parameters:

key (str)

Return type:

list[str]

on_message(message, reset)

for logging purpose. i.e., TextAreaInput bokeh widget

Parameters:
  • message (str)

  • reset (bool)

run_later(callback, *args, **kwargs)
Parameters:

callback (Callable)

run_periodic(cycle, callback, *args, **kwargs)
Parameters:
  • cycle (int)

  • callback (Callable)

run_timeout(delay, callback, *args, **kwargs)
Parameters:
  • delay (int)

  • callback (Callable)

update()

Top level UI components updating function. This function is called by BokehServer when setup() has done.

In this function, you need to initialize the data and update the UI components’ state.

document: Document
class neuralib.dashboard.example_multi.Pool[source]

Bases: View

property title: str
setup()[source]

setup application top view. This function is called by BokehServer only once when the server created and opened the web browser.

In this function, you need to initialize the UI components and return the layout.

Return type:

Model

get_arg(key)
Parameters:

key (str)

Return type:

list[str]

on_message(message, reset)

for logging purpose. i.e., TextAreaInput bokeh widget

Parameters:
  • message (str)

  • reset (bool)

run_later(callback, *args, **kwargs)
Parameters:

callback (Callable)

run_periodic(cycle, callback, *args, **kwargs)
Parameters:
  • cycle (int)

  • callback (Callable)

run_timeout(delay, callback, *args, **kwargs)
Parameters:
  • delay (int)

  • callback (Callable)

update()

Top level UI components updating function. This function is called by BokehServer when setup() has done.

In this function, you need to initialize the data and update the UI components’ state.

document: Document