Inserting images into graphs from local directory

I need help inserting images into plotly python graphs where the image is from a local directory.

I am following the guide: but the source of images is always a github repo. I was wondering how I can grab a png from my local directory. For ex. let’s say I have a png in my img_assets folder. source = “img_assets/example.png” does not work.

Thank you in advance!


Here I answered a similar question Depending on your image resolution it could be necessary to uncomment the line: