Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can just modify the layout to list auto_update in the second column. I believe this is what you are looking for. Based on the post by kcrisman at http://ask.sagemath.org/question/9999/using-layout-option-with-auto_updatefalse/, you have:

 @interact(layout={'top': [["ansA",'auto_update', "ansB"]]})
 def _(ansA=4,ansB=5,auto_update=False):
        print ansA+ansB

You can just modify the layout to list auto_update in the second column. I believe this is what you are looking for. Based on the post by kcrisman at http://ask.sagemath.org/question/9999/using-layout-option-with-auto_updatefalse/, you have:

 @interact(layout={'top': [["ansA",'auto_update', "ansB"]]})
 def _(ansA=4,ansB=5,auto_update=False):
        print ansA+ansB

This works for both sagecell and sagenb (version 6.7) in the same way. In SMC, the result is a checkbox in the second column. Checking or unchecking the box results in evaluation.