I have SAGE installed in my computer (a MacBook), and the following code works fine (I get the animation showing after a few seconds):
def tangent_line(f,a,x=x):
f(x)=f
b=f(a)
df(x)=diff(f,x)
m=df(a)
result=b+m*(x-a)
return result
f(x)=x^2
L(a,x)=tangent_line(f(x),a)
show(animate([plot((f(x),L(t,x)),x,-3.5,3.5,ymax=20,ymin=-20) for t in sxrange(-3,3,0.5)]))
The same code worked on SMC about 3-4 weeks ago, but now (in the last couple of days) it no longer works. The cell with the show command just flashes forever (or at least 30 minutes). I tried with different computers and different browsers and at different times of the day.
Thanks for any help with this issue.