plotly / dash-labs

Work-in-progress technical previews of potential future Dash features.
MIT License
139 stars 39 forks source link

Tried dash2.5,seem like only one page can be registered #111

Closed sylvoslee closed 2 years ago

AnnMarieW commented 2 years ago

Hi @sylvoslee

Converting from a the dash-labs pages plug-in to the pages feature in dash 2.5 requires 3 steps:

Let me know how it goes! The new dash docs with the pages feature will be ready soon.

sylvoslee commented 2 years ago

image I tried your demo(multi_page_basics)on dash2.5 and can't access http://127.0.0.1:8050/dashboard

AnnMarieW commented 2 years ago

Hi @sylvoslee. Thanks for reporting. There is an issue with pages in dash 2.5 for for anyone on Windows. There is a pull request to fix this - patch is coming soon.

AnnMarieW commented 2 years ago

@sylvoslee dash 2.5.1 has been released :confetti_ball:

sylvoslee commented 2 years ago

another question, how to get the hash value of the url

AnnMarieW commented 2 years ago

You can use the hash prop of dcc.Location

sylvoslee commented 2 years ago

Why can't pass hash value to layout function like query?

def layout(day=days[0], **other_unknown_query_strings):
    return html.Div(
        [
            dcc.Dropdown(
                id="dropdown",
                options=[{"label": x, "value": x} for x in days],
                value=day,
                clearable=False,
            ),
            dcc.Graph(id="bar-chart"),
        ]
    )