I am writing a Colab notebook to share with my students, so I want a copy of the notebook to run in other Google accounts.
I do am plotting some data in a python/jupyter notebook in Colab and saving it. Like
plt.savefig("Jump1-04.png")
In a cell later I want to use this image, so I tried various Markdown and or HTML approaches to include this image. Examples:
!()["Jump1-04.png"]
Or
<img src="/content/Jump1-02.png" />
None worked. My puzzle is that my code can open this file using open("Jump1-04.png", 'r'), so the notebook code knows where files are saved, but Text cells don't.
!pwd returns /content and !ls /content returns Jump1-04.png. That is why I tried putting /content in the HTML code above.
I want to avoid the pain ITB of finding the file using Google Drive, publically sharing the link, then using that link in the Text cell.
Why can't the Text cells simply find the files I save from the code cells?