I am attempting to display a markdown file .md with images using the dcc.markdown dcc.Markdown component.
However, I am unable to get it to display images that are referenced by location.
Is this not something dcc.Markdown supports?
I have tried placing the image next to .md, to app.py, in top of dir from where i launch the app. But nothing works.
1 Like
avm23
2
I second the question. It would be nice to be able to do the following:
Actually, this code works!
I believe the file must be put in assets/
:
dcc.Markdown("""
![chart](assets/local/path/fig1.svg)
""")
1 Like
There is an (undocumented?) option to specify a different local assets path
app = dash.Dash(assets_folder=β¦)