neuralib.dashboard.examples.view_animal.AnimalView

class neuralib.dashboard.examples.view_animal.AnimalView[source]

Bases: View

__init__(animal=None)[source]
Parameters:

animal (str | None)

Methods

__init__([animal])

get_arg(key)

on_figure_type(attr, old, value)

on_message(message, reset)

for logging purpose.

run_later(callback, *args, **kwargs)

run_periodic(cycle, callback, *args, **kwargs)

run_timeout(delay, callback, *args, **kwargs)

setup()

setup application top view.

update()

Top level UI components updating function.

Attributes

current_animal

title

select

content

document

select: Select
content: Div
__init__(animal=None)[source]
Parameters:

animal (str | None)

property title: str
property current_animal: str | None
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

on_figure_type(attr, old, value)[source]
Parameters:
  • attr (str)

  • old (str)

  • value (str)