Re: [sage-devel] interact bug + non interactive

2011-11-09 Thread Florent Hivert
Hi, > I've another question about interact. I use them to demonstrate some > algorithms during my course. So using yield I have a button [Step] which allow > me to execute the algorithm step by step as in a debugger. At each step I draw > some figure so show the status of the algorithm. > >

[sage-devel] interact bug + non interactive

2011-11-09 Thread Florent Hivert
Hi there, I've a problem with interact together with a request: I'd like to write a function which return some interact, for example: def make_interact(i): def _(choice=["x%i"%u for u in range(i)]): print choice return interact(_) However, if I write that the various choic