Great, many thanks, I should read the manual pager more carefully, since this is documented.
I observed that using auto_update=False removes the output. Is it possible to keep the old output on the screen when changing numbers in input fields and update when Update button is pressed? Robert On 18 kvÄ›, 10:28, Rajeev Singh <rajs2...@gmail.com> wrote: > here is the answer to the first thing. use auto_update=False - > > sage: @interact > ... def _(A=matrix(QQ,3,3,range(9)), v=matrix(QQ,3,1,range(3)), > auto_update=False): > ... try: > ... x = A\v > ... html('$$%s %s = %s$$'%(latex(A), latex(x), latex(v))) > ... except: > ... html('There is no solution to $$%s x=%s$$'%(latex(A), > latex(v))) > > Rajeev > > > > On Tue, May 18, 2010 at 1:50 PM, ma...@mendelu.cz <ma...@mendelu.cz> wrote: > > Dear support, this code is from interact help: > > > sage: @interact > > ... def _(A=matrix(QQ,3,3,range(9)), v=matrix(QQ,3,1,range(3))): > > ... try: > > ... x = A\v > > ... html('$$%s %s = %s$$'%(latex(A), latex(x), latex(v))) > > ... except: > > ... html('There is no solution to $$%s x=%s$$'%(latex(A), > > latex(v))) > > > If I want to change five numbers in the matrix A, I get a solution > > whenever I change each field. > > Is it possible to change all my five fields first and the let interact > > to compute the answer? In other words, interact should not do > > anything, unless asked explicitly. > > > I was thinking about adding a checkbox and perform the computation > > only if the checkbox is on, but this gives another problem: how to > > uncheck the checkbox from Sage interact after computation is done. > > > I am thinking about an interact which allows some comfortable > > manipulations with matrix rows and can be used for row pivoting, > > evaluating inverse functions, solving systems of linear equations and > > evaluating rank and determinants. For example, can be used on > > recitations. If something like this has been done, let me know, > > please. Many thanks > > > Robert Marik > > > -- > > 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<sage-support%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > 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 > athttp://groups.google.com/group/sage-support > URL:http://www.sagemath.org -- 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