Form Element

HTML elements that are binded to python through javascript remote function calls

class rpcjs.binded.FutureValue(uid, default=None)[source]

Bases: object

Methods

get  
get()[source]
class rpcjs.binded.ThreadFlag[source]

Bases: object

rpcjs.binded.number_input(min=None, max=None, callback=None, id=None)[source]
rpcjs.binded.realtime_altair_plot(chart, generator, id=None, dataset_name=None)[source]
rpcjs.binded.select_dropdown(options, callback=None, id=None)[source]
rpcjs.binded.set_symbol_callback(name, callback)[source]
rpcjs.binded.stop_update_thread()[source]
rpcjs.binded.streaming_iterator(id: str, name: str, callback, delay=1)[source]
Parameters:
id: str

DOM id of the plot

name: str

Name of the dataset the data is appended to

callback: Callable

Function that returns an iterator with the data to append

delay: int

Sleep time in second before sending data to the browser

Notes

Only on update thread can exist at any given time. If a new thread is spawn the old one will exit.

rpcjs.binded.text_input(placeholder='', callback=None, id=None)[source]