Skip to content

Commit

Permalink
Remove pio.default setting
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymilne committed Nov 13, 2023
1 parent 9f9dd45 commit cf4ead1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions vizro-core/src/vizro/models/_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ def validate_navigation(cls, navigation, values):
return Navigation(pages=[page.id for page in values["pages"]])
return navigation

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# pio is the backend global state and shouldn't be changed while
# the app is running. This limitation leads to the case that Graphs blink
# on page load if user previously has changed theme_selector.
# AM: Did I fix this? No need to set this any more?
pio.templates.default = self.theme

@_log_call
def pre_build(self):
# Setting order here ensures that the pages in dash.page_registry preserves the order of the List[Page].
Expand Down

0 comments on commit cf4ead1

Please sign in to comment.