question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can display gif infinite loop?

See original GitHub issue

Currently 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:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
takluyvercommented, Dec 10, 2017

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

0reactions
takluyvercommented, Feb 12, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found