Py.Cafe

stichbury/

vizro-multi-page-example

Vizro Multi-Page Example

DocsPricing
  • assets/
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import vizro.models as vm
from vizro import Vizro

page_one = vm.Page(
    id="page-with-hidden-title",
    title="Page with hidden title",
    components=[vm.Card(text="""# Placeholder""")]
)

page_two = vm.Page(
    title="Page with shown title",
    components=[vm.Card(text="""# Placeholder""")]
)

dashboard = vm.Dashboard(pages=[page_one, page_two])
Vizro().build(dashboard).run()