Ask Your Question

Revision history [back]

is it possible for dynamic update the input_box in @interact part?

still new to Sage. followed the pre_tutorials and online ingteract wiki examples.

try to realize the function code like bellow. given the relationship between V and P is V=P+107, and two input_box are defined.

@interact def _(P=input_box(20, width=6, label="power(dBm)"),V=input_box(127, width=6, label="voltage(dBuV)")): V=P+107

want to realize when I input the new number to the input_box of P, then the input_box of V will dynamically update the value base on the relationship of V=P+107. and vice versa