#16608: Immediate fix for animations in notebook
-------------------------------------+-------------------------------------
Reporter: niles | Owner:
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-6.3
Component: notebook | Resolution:
Keywords: notebook, animate | Merged in:
Authors: Niles Johnson | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/niles/ticket/16533-stopgap | 16cbd2d59b4b5bbb330668255345fc2d53f3afee
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by niles):
Replying to [comment:4 gagern]:
> Note that users who want to use FFmpeg to generate their GIF will have
to pass an explicit name to the `ffmpeg` method, since in your code `show`
does not support a `use_ffmpeg` argument and `save` does not make a
suitable choice of file name. Not sure this is worth fixing, though.
For this ticket, let's focus only on fixing regressions from previous
functionality. Did those things work before #12827? With the current
branch, all of the following work in the notebook:
{{{
c = animate([circle((i,i), 1-1/(i+1)^2, hue=i/5) for i in
srange(0,2,0.2)],xmin=0,ymin=0,xmax=2,ymax=2,figsize=[2,2])
c.show()
[shows the gif]
}}}
{{{
c.save(show_path=True)
[saves and returns path
'/Users/njohnson/.sage/temp/n15158/65775/tmp_zk_bPS.gif']
}}}
{{{
c.save(show_path=True,use_ffmpeg=True)
[saves and returns path
'/Users/njohnson/.sage/temp/n15158/65775/tmp_x8eYhm.gif']
}}}
{{{
c.save('test.mpg',show_path=True,use_ffmpeg=True)
[saves and returns path
'/private/var/folders/vm/9s3hrqs50jgfjhdl20yl9yjnfj74f3/T/tmpJY9m2M/test.mpg'
}}}
The animations exist at the indicated locations in the indicated formats,
and ffmpeg is used when requested.
Examples from the reference manual involving `implicit_plot3d` and Tachyon
also work as expected.
--
Ticket URL: <http://trac.sagemath.org/ticket/16608#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.