I am writing a Google Colab Notebook about Tight Binding Theory. I want to display either in a markdown cell or in a code cell an image, like its possible to do in Anaconda with the following code
from IPython.display import Image # needed to embed an image
Image(filename='example.png', embed=True)
I have tried doing it this way in Google Colab:
from IPython.display import Image
Image('example.png')
It runs and nothing shows up.
I have read that this way is also possible:
putting your image in /usr/local/share/jupyter/nbextensions/google.colab/
<img src='/nbextensions/google.colab/image.png' /> ```
I don't really understand this last way of doing it. Like is that first step a directory in my computer (I have tried looking for it and it is not there)?
Is there a simpler way to approach this?
EDIT: I realise now that directory is for LINUX operating systems. Any way I could do something equivalent in Windows (My computer operates Windows)