neuralib.dashboard.examples.view_all.AllView

class neuralib.dashboard.examples.view_all.AllView[source]

Bases: View

__init__(single=False)[source]
Parameters:

single – disable jump to pool page.

Methods

__init__([single])

build_goto_link(animal)

get_arg(key)

on_message(message, reset)

for logging purpose.

on_select_animal(attr, old, value)

on_select_date(attr, old, value)

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

title

goto_btn

content

select_animal

select_date

document

goto_btn: Div
content: Div
select_animal: Select
select_date: Select
__init__(single=False)[source]
Parameters:

single – disable jump to pool page.

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

update()[source]

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.

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

  • old (str)

  • value (str)

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

  • old (str)

  • value (str)

Parameters:

animal (str | None)