I'm using @interact to make a demo for my calculus students involving area minimization:
@interact def _(s=slider(-10,-0.1,0.1,default=-2.5,label='slope')): html('Try to minimize the area of the triangle whose hypotenuse passes through (2,3)') G=line([(0,-2*s+3), (-3/s+2,0)]) #s*(x-2)+3,(x,-1,6)) G += polygon( [ (0,0), (0,-2*s+3), (-3/s+2,0) ], rgbcolor=hue(0.75)) G += point([(0,-2*s+3),(-3/s+2,0),(2,3), (0,0)],rgbcolor=hue(0.95),pointsize=25) G.show(ymin=-1, ymax=10, xmin=-1, xmax=6, figsize=3) html('Area = %f' % (1/2*(-2*s+3)*(-3/s+2))) Everything works great on my local machine (Mac OSX 10.6, Sage 4.3.3) and also works great on sagenb.org when I'm logged in, but the published version only shows a slider, no graph: http://sagenb.org/home/pub/1777/ It also seems to run excruciatingly slow. I don't know if that's because of too many users on the server, or something in my example. I thought maybe @interact is somehow turned off on the public server because it could cause a huge server load, but couldn't find any posts or notices to this effect. Thanks for any suggestions. -- Benjamin F Jones bjo...@math.uga.edu -- 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