✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Embedding image in app

I am trying to embed an image, which initially worked with html.Img(src=app.get_asset_url(‘image.png’).
But now it doesnot display the image. i have the image in the assets folder. Can someone explain the purpose of creating the assets folder and help me with identifying why the image is not being displayed?

You should be able to do src='assets/path/to/img.png' which has usually worked for me.

Tried that as well.Since yesterday, I am not able to get the images displayed in the app. It shows 404 in the terminal window. Any alternatives?

Weird. Which version of Dash are you using?

I am using dash 1.0.0. Should I upgrade it to 1.0.2?

I think the image should be put under ‘assets’ directory