Can display gif infinite loop?
See original GitHub issueCurrently the gif display only works once and then the display is freezed at the last frame of the gif. It could not replay the animated gif again when I re-execute the command, even after restart the jupyter kernel.
I wonder if it possible to display animated gif for infinite loop or what is the correct way to call the display function for gif to make it able to replay whenever i execute the display command?
below is how i call the display function
from IPython.display import Image, display
X = Image(filename=path2gif, format='gif')
display(X)
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
How To Remove The Endless Loop From Animated GIF[2021]
Even though GIFs can be saved as infinite loops, this isn't a mandatory option, as most GIF editors enable you to choose if...
Read more >Loop GIF - Loop your animated GIFs over and over - VEED.IO
Online GIF looping tool that lets you create a GIF that loops over and over. Add an endless loop to your animated GIF...
Read more >Change GIF Loop Count - Online GIF Tools
This online utility lets you change the number of times a GIF animation gets repeated. You can make it play continuously/infinitely or you...
Read more >Play Gif image in HTML with infinite loop - Stack Overflow
Looping is encoded into the GIF itself, not the img tag. Open the GIF in an image editor and change the mode to...
Read more >How to Loop a GIF Online/Offline - 5 Ways - FlexClip
As a famous GIF editor, EZGIF allows can work as a simple GIF looper to help you make cool looping GIFs. You can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think it might be a property of the gif file itself, rather than the HTML tag: https://en.wikipedia.org/wiki/GIF#Animated_GIF
Thanks for confirming. I’m closing this as I don’t think there’s anything for IPython to do. How the animation is displayed is up to the browser, I think.