I would like to read an image stored in google drive from an ipython notebook. I tried already using Image and requests as:
import requests
from ipywidgets import Image
img = Image(requests.get("https://drive.google.com /open?id=XXXX4"))
type(img)
img
but the image is broken. Or if I use the url input explicitly:
img = Image(url=https://drive.google.com /open?id=XXXX4")
type(img)
img
The '.com=....' is recognized as the format of the image so I got:
ValueError: Cannot embed the '.com=...' image format
Also I tried to directly import the file using requests library but in that case the whole html is returned which is not what I want... Any idea is appreciated.