use of animated plot on jupyter-sage in a docker installation

37 views
Skip to first unread message

Francesco

unread,
Jul 24, 2019, 12:40:56 PM7/24/19
to sage-support
I have installed sagemath in a docker container . I have made a simple sagemath code like this:
sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in sxrange(0,1,.2)]
a = animate(sines)
a
.show()

instead of obtaining an animation in the browser ( like a sagemath installed compiling from source ), i obtain an error message like this:
/opt/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/display_manager.py:590: RichReprWarning: Exception in _rich_repr_ while displaying object: 
Error: Neither ImageMagick nor ffmpeg appears to be installed. Saving an
animation to a GIF file
or displaying an animation requires one of these
packages
, so please install one of them and try again.

See www.imagemagick.org and www.ffmpeg.org for more information.
 
RichReprWarning,


Can you help me ?
Installing sagemath with docker is much faster then compiling from source !


Francesco

unread,
Jul 24, 2019, 12:49:02 PM7/24/19
to sage-support
The code is for a jupyter notebook of course.

Dima Pasechnik

unread,
Jul 25, 2019, 3:59:52 AM7/25/19
to sage-s...@googlegroups.com
probably the container should have one of these packages installed.




--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/6e1abf83-649e-47ed-a39f-ce4b751c43ef%40googlegroups.com.

Francesco

unread,
Jul 25, 2019, 6:20:04 AM7/25/19
to sage-support
Probably in a next release ? I hope


Il giorno giovedì 25 luglio 2019 09:59:52 UTC+2, Dima Pasechnik ha scritto:
On Wed, 24 Jul 2019 at 19:40, Francesco <francesco...@gmail.com> wrote:
I have installed sagemath in a docker container . I have made a simple sagemath code like this:
sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in sxrange(0,1,.2)]
a = animate(sines)
a
.show()

instead of obtaining an animation in the browser ( like a sagemath installed compiling from source ), i obtain an error message like this:
/opt/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/display_manager.py:590: RichReprWarning: Exception in _rich_repr_ while displaying object: 
Error: Neither ImageMagick nor ffmpeg appears to be installed. Saving an
animation to a GIF file
or displaying an animation requires one of these
packages
, so please install one of them and try again.

See www.imagemagick.org and www.ffmpeg.org for more information.
 
RichReprWarning,


Can you help me ?
Installing sagemath with docker is much faster then compiling from source !

probably the container should have one of these packages installed.




--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages