Image disappears after notebook export to HTML

anh-le
Databricks Partner

Hi everyone,

I have an image saved at DBFS which I want to include in my notebook. I'm using the standard markdown syntax

![my image] (/files/my_image.png)

which works and the image shows. 

However, when I export the notebook to HTML, the image disappears. Swapping my image with a random internet image link produces the expected output. 

Does anyone know what's the issue?

Thanks

 

Walter_C
Databricks Employee
Databricks Employee

The issue you're experiencing might be due to the fact that when you export your notebook to HTML, the image from DBFS isn't accessible in the same way as it is within the Databricks environment. The DBFS path isn't accessible from outside Databricks, which is why the image disappears in the exported HTML.