Insert Image in Google Colab Text Cell

冷暖自知 提交于 2021-01-28 05:45:55

问题


I want to insert an image to a text cell in google colab which I have already uploaded in google drive.
For this I use markdown syntax: ![Name]("Get shareable link")

But it doesn't work. My link looks like this:

https://drive.google.com/file/d/16teg5zUQhl01IOgvnP61aFjj0kFrviwr/view?usp=sharing

and not like this

https://docs.google.com/uc?id=----

Does anyone know where the problem is?

Thank you very much!


回答1:


You can change to direct URL format

![](https://drive.google.com/uc?id=16teg5zUQhl01IOgvnP61aFjj0kFrviwr)

Then it should show to you. It's not shown to me because it's not shared publicly.




回答2:


You can try from left-hand side or from code-block If you try from code, copy the token and paste on the textbox and hit 'enter' then 'refresh' left hand side panel using the refresh button (beside drive-mount button) the go to the image and right click copy path



来源:https://stackoverflow.com/questions/63154277/insert-image-in-google-colab-text-cell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!