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.

`Image` does not accept URLs, only data

See original GitHub issue

Hey,

I think I found a bug with Image.

The ipywidget version of Image does not display an image, i.e., you get the broken link image symbol.

from ipywidgets import Image
Image(url='http://history.nasa.gov/ap11ann/kippsphotos/5903.jpg')

Whereas the IPython Image version does work.

from IPython.display import Image
Image(url='http://history.nasa.gov/ap11ann/kippsphotos/5903.jpg')

I also have the same problem when showing local images Image(filename="image.jpg").

I’m using the following version

>>> import ipywidgets
>>> ipywidgets.__version__
'4.1.1'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sottecommented, Mar 24, 2016

What do you mean with “image data”? A numpy array? Image(filename="image.jpg") is also not accepted.

If url is not an accepted argument then Image should throw an exception if url is specified.

0reactions
jdfredercommented, Mar 24, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle loading of images that may not exist?
An image URL that is incorrect or points to an image that no longer exists, is most likely a data issue. So the...
Read more >
Data URLs - HTTP - MDN Web Docs - Mozilla
Data URLs, URLs prefixed with the data: scheme, allow content creators to embed small files inline in documents. They were formerly known as ......
Read more >
How to fix: Processing failed: image link [image_link ...
Ensure that your URL links lead to an image and not to a web page. If you change the image, but keep the...
Read more >
android - Images Not Loading from URL - Stack Overflow
I am trying to load some images into a list view using Picasso but I'm only seeing my placeholder image. I'm loading the...
Read more >
Data URIs | CSS-Tricks
Did you know that you don't have to link to an external image file when using an <img> element in HTML, or declaring...
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