Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

get_relative_path, strip_relative_path, get_asset_url #1923

Merged
merged 6 commits into from
Feb 16, 2022

Conversation

AnnMarieW
Copy link
Collaborator

Closes plotly/dash-labs#65

This PR creates the following functions:

  • dash.get_relative_path
  • dash.strip_relative_path
  • dash.get_asset_url

This is similar to dash.callback where you don't need the app object. It makes it possible to use these functions in the pages folder of a multi-page app without running into the circular app imports issue.

dash/dash.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 very nice!

@alexcjohnson alexcjohnson merged commit 5afc4fb into plotly:dev Feb 16, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi Page Apps: circular reference when importing app
2 participants