Elements

olympus.dashboard.elements.altair_plot(chart, with_iframe=True)[source]

Export an altair chart figure into HTML format

olympus.dashboard.elements.base_page(title, header, body, footer)[source]

Base HTML5 page

Parameters:
title: str

Title of the page

header: str

Header section of the page

body: str

Body section of the page

footer: str

Footer section of the page

olympus.dashboard.elements.chain(*args)[source]

Concatenate a list of DOM elements together

Parameters:
items: argument list

DOM elements

olympus.dashboard.elements.code(name)[source]

Generate a new code

Parameters:
name: str

DOM children of this div

olympus.dashboard.elements.div(*items, style=None)[source]

Generate a new div

Parameters:
items: argument list

DOM children of this div

olympus.dashboard.elements.div_col(*items, size=None, style=None, id=None)[source]

Generate a new div with a col class

Parameters:
items: argument list

DOM children of this div

olympus.dashboard.elements.div_row(*items, style=None)[source]

Generate a new div with a row class

Parameters:
items: argument list

DOM children of this div

olympus.dashboard.elements.get_resources()[source]

Fetch local resource file

olympus.dashboard.elements.header(name, level=1)[source]

Generate a new header

Parameters:
items: str

name of the header

level: int

level of the header

olympus.dashboard.elements.iframe(html, id=None)[source]

Generate a hyperlink

Parameters:
name: str

name of the link

ref: str

reference of the link

olympus.dashboard.elements.menu(*items)[source]
olympus.dashboard.elements.menu_item(name, href)[source]
olympus.dashboard.elements.navbar(**kwargs)[source]
olympus.dashboard.elements.ol(items)[source]

Generate an ordered list

Parameters:
items: list

list of DOM element to make a ordered list

olympus.dashboard.elements.plotly_plot(figure)[source]

Export a plotly figure into HTML format

olympus.dashboard.elements.pre(v)[source]

Generate a new pre

Parameters:
v: str

DOM children of this div

olympus.dashboard.elements.pyplot_plot(figure, **save_args)[source]

Export a matplotlib figure into HTML format

olympus.dashboard.elements.select_dropdown(options, id)[source]

Generate a new select dropdown form

Parameters:
options: List[str]

list of options the user can select

id: str

DOM id used to refer to this input form

olympus.dashboard.elements.show_agent(agents)[source]

Generate a new table displaying msqqueue agents

Parameters:
agents: List[Agent]

list of agents

olympus.dashboard.elements.show_messages(messages)[source]

Generate a new table displaying msqqueue messages

Parameters:
messages: List[Messages]

list of messages

olympus.dashboard.elements.span(name)[source]

Generate a new span

Parameters:
name: str

DOM children of this div

olympus.dashboard.elements.ul(items)[source]

Generate an unordered list

Parameters:
items: list

list of DOM element to make a unordered list