Ask Your Question

# Revision history [back]

### 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?

 2 No.2 Revision tmonteil 24308 ●27 ●176 ●447 http://wiki.sagemath.o...

### 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?