Load images outside the assets folder

I have some images in a local folder different from assets. Assume I cannot move the images inside the assets folder. Is there a way to load those images (outside the assets folder) ? I tried but it seems that I can only load them if they are inside assets.

Hi Juan! The default folder to look for assets (images, CSS, JS) is assets, but you should be able to change it by specifying a different path in the assets_url_path argument when you initialize the app object (ref: API Reference | Dash for Python Documentation | Plotly)

I’ll tag on, that if absolutely necessary, to have both assets and other arbitrary files, you can use the flask server to create a route to the specific path as well.