Interact layout
How to make the auto_update button to the center of 2 column interact layout. Please advice
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..., 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.
Thanks it is a great help. Is it possible to update button in center of both column.
Asked: 2015-06-03 09:42:57 +0100
Seen: 892 times
Last updated: Jun 09 '15