GitHub user jlangf added a comment to the discussion: Add an image into 
Superset dashboard

I came up with the following (not ideal) workaround that allows me to reference 
a pre-defined set of images from a Dashboard hosted on the same server as is 
hosting Apache Superset:
1. Create a directory to contain the images you want to reference:
eg. /path/to/images/custom_images
2. Make a symbolic link to this directory in the superset installation 
directory.  In my case that is here:
```
cd /opt/homebrew/lib/python3.9/site-packages/superset/static/assets/images
ln -s /path/to/images/custom_images custom_images
```
3. In the markup for my dashboard add the following:
`<img src="/static/assets/images/custom_images/my_custom_image.png" />`

The biggest problem with this method is whenever I upgrade the Apache Superset 
Python package, I will need to re-add the symbolic link (step 2 above).  
However I went with this method to get around my browser's security constraints 
that were preventing me from displaying an image from an external domain name 
on my dashboard.

GitHub link: 
https://github.com/apache/superset/discussions/30902#discussioncomment-13237703

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to