After coming across the following Interact within an Interact example ( http://interact.sagemath.org/node/15) created by Ira Hanson, I wanted to know whether it is technically possible to create an interact within an interact for my code below.
My vision is to create an interact within an interact where after the user has chosen the first element a second set of sliders is produced to enable the user to choose the second and so forth until only one element remains. Sage Code: @interact def _(N = selector([2..9],nrows=1,label='Size of Matrix',default=4),i = slider(1,10,1,default = 2,label = '$i^{th} \ row$'),j = slider(1,10,1,default = 3,label='$j^{th} \ column$')): if max(i,j)>N: print "Your chosen ith or jth value is too large for this size of matrix!" return else: for I in range(N): for J in range(N): if (I,J)==(0,0): p=text("$a_{1,1}$",(0,N-1),color='black') else: p+=text("$a_{%s,%s}$"%(I+1,J+1),(J,N-I-1),color='black') p+=line([(-.5,N-i),(N-.5,N-i)],color='blue') p+=line([(j-1,-.5),(j-1,N-.5)],color='red') show(p,axes=False,figsize=N/2) Any help would be greatly appreciated. Regards, Aled -- 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