Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to make input_box in this code?

I saw the tower of Hanoi from http://wiki.sagemath.org/animate I just only want to make input box in this sage code, but it doesn't work.

http://alpha.sagenb.org/home/pub/706/ <- Here I did,

I added
[ @interact def graph(n=input_box('3', label="Number")): ] and spacing all the other lines

What's wrong with this codes?

how to make input_box in this code?

I saw the tower of Hanoi from http://wiki.sagemath.org/animate I just only want to make input box in this sage code, but it doesn't work.

http://alpha.sagenb.org/home/pub/706/ <- Here I did,

I added

[
@interact
def graph(n=input_box('3', label="Number")): label="Number")):
]

and spacing all the other lines

What's wrong with this codes?