How to insert an inline image in Google Colaboratory from Google Drive

Igor Gomez picture Igor Gomez · Jun 3, 2018 · Viewed 32.8k times · Source

I am trying to insert an image in Google Colaboratory (markdown) already saved in Google Drive using this expression ![Text](https://xxxx) but it doesn't work. For example, the Colaboratory markdown manual shows how to insert a photo inline with this example An inline image: ![Google's logo](https://www.google.com/images/logos/google_logo_41.png). Ok, that is a photo from internet, but, when I replace that photo for one already saved in my Google Drive it doesn't appear.

Answer

Shaswat Lenka picture Shaswat Lenka · Jun 14, 2019

I tried all the answers above and nothing worked because of a small change Google has created recently(at the time of writing this post). If you click on "Get Shareable link" and paste it, it would look something like this:

https://drive.google.com/open?id=12BumFEqzKxc9mog8tYuUqvpxf10ot6W3

Now just change the open?id to uc?id and it will instantly work.