DOM Elements

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

Export an altair chart figure into HTML format

rpcjs.elements.async_altair_plot(fun, *args, id=None, **kwargs)
rpcjs.elements.async_plotly_plot(fun, *args, id=None, **kwargs)
rpcjs.elements.async_pyplot_plot(fun, *args, id=None, **kwargs)
rpcjs.elements.base_page(title, header, body, footer) → HTML[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

rpcjs.elements.button(name, id)[source]
rpcjs.elements.chain(*args) → HTML[source]

Concatenate a list of DOM elements together

Parameters:
items: argument list

DOM elements

rpcjs.elements.checkbox_input(*args)[source]
rpcjs.elements.code(name) → HTML[source]

Generate a new code

Parameters:
name: str

DOM children of this div

rpcjs.elements.div(*items, style=None, id=None) → HTML[source]

Generate a new div

Parameters:
items: argument list

DOM children of this div

rpcjs.elements.div_col(*items, size=None, style=None, id=None, classes=None) → HTML[source]

Generate a new div with a col class

Parameters:
items: argument list

DOM children of this div

rpcjs.elements.div_row(*items, style=None) → HTML[source]

Generate a new div with a row class

Parameters:
items: argument list

DOM children of this div

rpcjs.elements.get_resources()[source]

Fetch local resource file

rpcjs.elements.header(name, level=1) → HTML[source]

Generate a new header

Parameters:
items: str

name of the header

level: int

level of the header

rpcjs.elements.html_tag_maker(tag, docstring='')[source]
rpcjs.elements.iframe(html, id=None)[source]
rpcjs.elements.iframe_spinner()[source]
rpcjs.elements.image(**kwargs)[source]
rpcjs.elements.kbd(*content, **kwargs)
rpcjs.elements.li(*item) → HTML[source]

List Item

Parameters:
item: HTML

Generate a hyperlink

Parameters:
name: str

name of the link

ref: str

reference of the link

rpcjs.elements.menu(*items) → HTML[source]
rpcjs.elements.menu_item(name, href) → HTML[source]
rpcjs.elements.navbar(**kwargs) → HTML[source]
rpcjs.elements.number_input(id, min=None, max=None, name=None)[source]
rpcjs.elements.ol(items) → HTML[source]

Generate an ordered list

Parameters:
items: list

list of DOM element to make a ordered list

rpcjs.elements.plotly_plot(figure, full_html=False)[source]

Export a plotly figure into HTML format

rpcjs.elements.plotly_plot_full(plot)[source]
rpcjs.elements.pre(v) → HTML[source]

Generate a new pre

Parameters:
v: str

DOM children of this div

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

Export a matplotlib figure into HTML format

rpcjs.elements.radio_input(*args)[source]
rpcjs.elements.samp(*content, **kwargs)
rpcjs.elements.select_dropdown(options, id=None)[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

rpcjs.elements.show_agent(agents) → HTML[source]

Generate a new table displaying msqqueue agents

Parameters:
agents: List[Agent]

list of agents

rpcjs.elements.show_exception()[source]
rpcjs.elements.show_messages(messages) → HTML[source]

Generate a new table displaying msqqueue messages

Parameters:
messages: List[Messages]

list of messages

rpcjs.elements.sidebar(name='', **kwargs) → HTML[source]
rpcjs.elements.span(name) → HTML[source]

Generate a new span

Parameters:
name: str

DOM children of this div

rpcjs.elements.spinner()[source]
rpcjs.elements.submit_input(name, id)[source]
rpcjs.elements.test_area()[source]
rpcjs.elements.text_input(placeholder, id, suggested=None)[source]
rpcjs.elements.ul(items) → HTML[source]

Generate an unordered list

Parameters:
items: list

list of DOM element to make a unordered list

rpcjs.elements.unique_id()[source]
rpcjs.elements.var(*content, **kwargs)