VarBridge

Explicit ActiveHTMLWidgets transport between Python Var and JSVar state.

Nothing is synchronized until the containing JSState is mounted in widget mode. HTML exports serialize initialization but omit transport and callbacks. Direction is python_to_js, js_to_python, or both. Browser writes are echoed with a Python origin so they do not create a feedback loop.

 

__init__(self, python_var, js_var, *, direction='both', initialize_from='python'): 

 

@classmethod
mount(cls, state, element): 

Feedback

Examples

Templates

Documentation