︠99d6a1a5-f009-4d7f-b5eb-166094539c8di︠ %md 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 know is it possible to realize when I input the new number to the input_box of P, the input_box of V will dynamically update the value base on the relationship of V=P+107. and the vice versa. ︡384f9def-65ab-4d27-8b96-7f995fc81d98︡{"done":true,"md":"\nGiven the relationship between V and P is V=P+107, and two input_box are defined.\n\n @interact\n def _(P=input_box(20, width=6, label=\"power(dBm)\"),V=input_box(127, width=6, label=\"voltage(dBuV)\")):\n V=P+107\n\nwant to know is it possible to realize when I input the new number to the input_box of P, the input_box of V will dynamically update the value base on the relationship of V=P+107. and the vice versa."} ︠4e0d0098-d29f-439c-9327-e9e310719fc2s︠ @interact def f(P=input_box(20, width=15, label="power(dBm)"),V=input_box(127, width=15, label="voltage(dBuV)")): print "before update, V = ", V f.V = P+107 ︡d37cb721-2f5f-4edc-8a81-306f20c47429︡{"interact":{"controls":[{"control_type":"input-box","default":20,"label":"power(dBm)","nrows":1,"readonly":false,"submit_button":null,"type":null,"var":"P","width":15},{"control_type":"input-box","default":127,"label":"voltage(dBuV)","nrows":1,"readonly":false,"submit_button":null,"type":null,"var":"V","width":15}],"flicker":false,"id":"2b81b1cc-3727-4e1d-b686-dfd991954cc7","layout":[[["P",12,null]],[["V",12,null]],[["",12,null]]],"style":"None"}}︡{"done":true}︡ ︠72065c01-d3b0-4e32-b754-28ff4c465647︠