ram.rac...@gmail.com wrote:
> Is there something in Sage like Mathematica's `Interact`? For example,
> I want to have a graph, and a slider, and when I move the slider, it
> makes some change to the graph in real-time.
> 
> Possible?
> 


Yes, this is one of the great features of Sage!  We call them 
"Interacts".  Here is an example of code for a notebook cell:

@interact
def myplot(c=slider(0,3)):
     show(plot(sin(c*x), (x, -5, 5)))


You can also see the webpage that was pointed out in another message: 
http://wiki.sagemath.org/interact  for lots more examples.

Thanks,

Jason



-- 
Jason Grout

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to