How to show an image in a notebook using html?

PaulHernandez
New Contributor II

Hi everyone,

I just learning how to personalize the databricks notebooks and would like to show a logo in a cell.

I installed the databricks cli and was able to upload the image file to the dbfs:

0693f000007OoKMAA0

I try to display it like this:

displayHTML("<img src ='files/Omnetric_logo.jpg'>")

Is not working:

0693f000007OoKNAA0

If I used the full URI of the image, same result:

displayHTML("<img src ='dbfs:/FileStore/files/Omnetric_logo.jpg'>")

I also tried with a "images" folder instead of "files", again, same result.

Could you please help me with that. Any comment will be appreciated.

Best,

Paul