How can I use CSS and other static files (image, python, js, etc) in my Dash app?
ghaedya1
Registered Posts: 2 ✭✭✭
How can I use CSS and other static files (image, python, js, etc) in my Dash app?
I already tried to use the project library folder but I wasn't successful.
I know how to use such files from the internet but any solution if the files are only available locally?
Answers
-
Hi,
you need to use the instance-wide local/static/ folder, which is located in DATADIR/local/static/ and accessible in the UI via the Global Shared Code (from the global menu on the right of the menubar) > Static web resources. The files can then be accessed via the url http://dssHost:dssPort/local/static/path/to/the/file
-
Can you please elaborate where the DATA_DIR is?
-
CoreyS Dataiker Alumni, Dataiku DSS Core Designer, Dataiku DSS Core Concepts, Registered Posts: 1,150 ✭✭✭✭✭✭✭✭✭
Hi @ghaedya1
more information on the Data Directory can be found in the documentation.I hope this helps!