Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
minimal fix to restore functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
nilesjohnson committed Jun 30, 2014
1 parent 80e319d commit 58b9c46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sage/plot/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
import os

from sage.structure.sage_object import SageObject
from sage.misc.temporary_file import tmp_filename, tmp_dir
from sage.misc.temporary_file import tmp_filename, tmp_dir, graphics_filename
import plot
import sage.misc.misc
import sage.misc.viewer
Expand Down Expand Up @@ -637,7 +637,10 @@ def show(self, delay=20, iterations=0):
return

if plot.EMBEDDED_MODE:
self.gif(delay = delay, iterations = iterations)
# graphics_filename is used so that notebook knows
# what file to display
filename = graphics_filename(ext='.gif')
self.gif(savefile=filename, delay=delay, iterations=iterations)
else:
filename = tmp_filename(ext='.gif')
self.gif(delay=delay, savefile=filename, iterations=iterations)
Expand Down

0 comments on commit 58b9c46

Please sign in to comment.