Animation doesn't work
I'm using a tutorial and should get an animation from this, but nada. All I get is the title: Animation with 20 frames, and nothing else. Is this correct or did the author miss something? I've waited ten minutes and my computer isn't That slow ;) Midrange Acer with four cores. Local server in a virtualbox on win 8. I also tried it in Firefox as well as Chrome. No change.
f(x) = 5*x - x^2/8 + x^3/1200
df(x) = diff(f(x),x)
max = 100
p = plot(f(x),x,0,max)
lblp = text("$y = " + latex(f(x)) + "$",[40,100],fontsize=14)
lbldp = text("$y' = " + latex(df(x)) + "$",[40,80],fontsize=14,rgbcolor='#006000')
ga = []
for argx in srange(0,max,5):
dp = plot(f(argx) + (df(argx)*(x-argx)),x,0,max,color="#006000")
xp = point((argx,f(argx)),rgbcolor='#800000')
ga.append(p+lblp+lbldp+dp+xp)
animate(ga,ymin=0,ymax=max,axes_labels=['x','y'],fontsize=12,figsize=(4,3)).show(delay=1)
I found you had to install ImageMagick (not mentioned in the tutorial - the usual dependency search ;), but still nothing is happening. FFMPEG is already installed.
It appears I have to install ImageMagick into the Virtualbox, since it won't pick it up from Windows, but I can't find how to do that yet or if it's even possible in Windows. Looks like it might work in linux, though. But then I wouldn't need a virtualbox ;)
true,
animate
doesn't seem to work in the jupyter notebook (launch viasage -n jupyter
) as of v7.6. however, it does work in the sage notebook (launch viasage -n
), and it also works in the command line (launch viasage
), this time producing a set of .pdf files. let me mention in passing that you can use sagemath online via sagemathcell (animate works there too) and for more serious purposes check sagemathcloud.@mforets - did you open a bug report for
animate
not working in the Jupyter? If this starts to be our default then it needs to support things like this.@cybervigilante - to be fair, in a huge warning at the top of http://doc.sagemath.org/html/en/refer... it says you need one of those two tools. The tutorials are not intended, nor could be, comprehensive. If you point out exactly where it didn't say anything about it, that would be helpful so that we can point that documentation to the warning as well, thank you.