auto_update=false

14 views
Skip to first unread message

Carl Eberhart

unread,
Jan 24, 2018, 10:58:33 AM1/24/18
to sage-cell
I can't get auto_update=false to work for me in an input cell.  Is it broken or am I putting it in the wrong place?

The interact looks like this :

@interact(layout={'top':[['alp1','bet1','alp2','a1','a2'],['A','An','B','Bn','s']]})
def gtrap(bet1=input_box(70,width=10,label='$\\beta_1$', auto_update=false),alp1=input_box(50,width=10,label='$\\alpha_1$', auto_update=false), ... ):

If I change the value in one box, then move the cursor to another box to change that value, the interact updates automatically.

This happens in Chrome, Firefox, and Edge.

Any suggestions?

Thanks, 
Carl Eberhart

Andrey Novoseltsev

unread,
Jan 24, 2018, 3:13:14 PM1/24/18
to sage-cell
auto_update=False should be an argument of the whole function that you want to make interactive, not of individual control elements.

Best,
Andrey

Carl Eberhart

unread,
Jan 24, 2018, 5:35:48 PM1/24/18
to sage-cell
That was easy. Thought I had tried that first, but no.  Thanks!
Carl
Reply all
Reply to author
Forward
0 new messages