-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept app root path as kwarg to dash
method?
#232
Comments
Allow the app root path to be specified explicitly for the `dash()` method. The default is `app_root_path()` and does not break compatibilty. fixes: plotly#232
Could you expand on that? Would you mind sharing a sketch of the file directory layout? Have you tried playing around
|
Yes, I have tried playing with the available kwargs, but I didn't find anything suitable. The problem in my case arises because we include the Dash app into our application which has other things to run and starts with its own startup program file. The layout looks something like this:
So |
Sorry for the delay. Assuming you instantiate app = dash(; assets_folder=joinpath(@__DIR__, "..", "assets") should do the trick. |
Thanks for responding. I had tried using |
Ah I see. Maybe try using https://github.com/JuliaPackaging/RelocatableFolders.jl in this case? |
Noticed that the
dash
method does not accept a keyword arg for the app root path, and instead calls the built inapp_root_path()
to determine that here:Dash.jl/src/app/dashapp.jl
Line 330 in 462b215
I am facing an issue where my code layout and app invocation does not suit the heuristic the
app_root_path()
method uses. It would be useful if thedash
method could accept a keyword arg for that.The text was updated successfully, but these errors were encountered: