-
Notifications
You must be signed in to change notification settings - Fork 39
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
Multi Page Apps: circular reference when importing app #65
Comments
It's true that importing |
First of all, BIG thank you for this module. It's been a lot of fun to learn and play with. Is there a suggested workaround for calling the |
@M4thM4gician Glad you like We definitely need to be able to accommodate this use case. Thanks for reporting. I'll keep you posted on the progress. |
@stevej2608, @M4thM4gician To solve the circular reference issue we will be adding the following functions that will be similar to
This is a good first issue. Here are some tips for getting started:
Related issues:
|
@AnnMarieW That is REALLY exciting! Thank you so much for following up on this and for the quick responses. I'm looking forward to using this new capability to build beautiful content using Dash and Dash Labs! |
PR: plotly/dash#1923 |
Should a new issue be opened up for the caching issue detailed here?
|
Reopening this issue - PR#1923 created:
As described above, the following is still open: |
Just to add to this, the same issue occurs with the dashboard engine for enterprise users. The workaround is easy enough by simply registering the dashboard engine page and declaring its layout inside the app.py file. However, for code organization, it would be nice to eventually be able to break this code and the associated callbacks into its own file. |
Thanks for reporting @bigmike36c ! Yes agreed re dashboard engine. We'll need to make an update to that library that doesn't require |
I define my dash app instance in app.py:
By default the pages plug-in iterates over the modules in the ./pages folder. I have a page that needs
to reference the dash app instance in order to call the get_asset_url() method.
In my page module, the import:
Creates a circular reference. I can fix this with an embedded import but I'd prefer not to. Is there a way
to resolve this? Ideally a proxy reference to the current dash instance (dash.current_app) would be one
solution.
Cheers.
The text was updated successfully, but these errors were encountered: