Closed rasbt closed 2 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Seems like GitHub has temporary issues with rendering images in Jupyter Lab if the images are hosted at an external website. I suspect it's an issue with their caching service. As this PR shows it doesn't help to host the images via a different URL. Hopefully their issue is temporary.
About the external links, are only webp images affected by this issue? Or other formats like jpg/jpeg too?
@d-kleine It seems to affect all image formats in Jupyter notebooks. I created a test repo here where you can see that the images (png, jpg, webp) work fine when embedded in a Markdown file.
However, in Jupyter Lab files, the same images don't render anymore since last week.
However, Jupyter Lab files still render the images if they are inserted via relative links. So, I suspect that their image caching service for notebooks broke.
Two solutions in the meantime are
I will give it another week or so, and if it still doesn't work, I will consider adding the image files to this GitHub repo directly. (I originally wanted to avoid this because this will add another ~10 Mb to the repository.)
Since this issue is persisting for 4 days now, I also filed a bug report on GitHub here. Hopefully someone will investigate.
I see - yeah, I can confirm this from my side as well. I think I have seen this a while ago too in my own jnbs on Github, was fixed within a few days.
Switching to nbviewer is a good workaround imo 👍🏻
Update: Seems like GitHub has fixed the issue 🛠️
Did it render for you? Unfortunately, when checking, the images still don't render for me :(
I am pretty sure it was working again, next time I'll take evidence (screenshots) 🕵🏻 🤣
This can be closed for now since it's a GitHub bug. See #338 and ticket #2972699
Change image hosting URL to S3 to avoid timeouts.