dash-labs icon indicating copy to clipboard operation
dash-labs copied to clipboard

Release 1.1.0 doesn't support register_page(__name__)

Open nimit-gupta opened this issue 3 years ago • 1 comments

nimit-gupta avatar Jun 10 '22 16:06 nimit-gupta

Hi @nimitiitk,

The pages functionality is now available in dash 2.5. The announcement and the new dash docs are coming soon, but I recommend converting to the dash version. See below for more info.

There was a conflict between pages in dash 2.5 and pages in dash-labs. In dash-labs==1.1.0, the register_page function has been re-named to:

dash_labs.plugins.register_page

You can see the updated dash-labs docs and examples for more info. If you don't want to make this change, you can use dash-labs==1.0.8


:tada: pages is now available in dash 2.5.0!

Convert your multi-page app from a dash-labs pages plug-in to the pages feature in dash 2.5 in 3 easy steps:

  1. Remove import dash_labs as dl or upgrade dash-labs to V1.1.0 There is a conflict between dash-labs versions less than 1.1.0 when running a pages app in dash 2.5

  2. Change:

app = Dash(__name__, plugins=[dl.plugins.pages])

to:

app = Dash(__name__, use_pages=True)
  1. Change:
dl.plugins.page_container

to:

dash.page_container

That's it!

:point_right: Thepages feature will no longer be developed and maintained here in dash-labs. I recommend all dash-labs multi-page apps be converted to use the pages feature in dash 2.5.

AnnMarieW avatar Jun 10 '22 17:06 AnnMarieW