Skip to main content

A framework to simplify some of the challenges in setting up multipage dash pages.

Project description

# dash-multipage A framework to simplify some of the challenges in setting up multipage dash pages

This can be used as is to reduce the boilerplate for a multipage app, or used as a template.

The basic structure is to create an instance of dash_multipage.MultiPageDashController.

This adds the layout and callbacks to the dash app passed in as an argument. It provides the nav buttons on top, and handles selecting the page based on the URL.

It expects that the app will load Bootstrap CSS for pretty navigation tabs.

Each page is an implementation of dash_multipage.ControllerBase. The implementation gives the link information, layout and callbacks.

To handle loading a page with specific selections, the from dash_multipage.URLArgs provides a way to generate links with the current input, dropdown, etc. selection preserved. This is not required, and you can generate a multipage app without this functionality.

As a minor note, there is also a set of classes that override dash’s Input, Output, and State. These are merely a convenience wrapper to allow them to be initialized directly from the components.

# Example An example app is found in example/

To run with flask: FLASK_DEBUG=1 FLASK_APP=example/multipage_app.py:SERVER flask run

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dash_multipage-1.0.1.tar.gz (6.2 kB view hashes)

Uploaded source

Built Distribution

dash_multipage-1.0.1-py2-none-any.whl (9.6 kB view hashes)

Uploaded py2

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page