Arts-of-coding commited on
Commit
19f4228
1 Parent(s): a279a06

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import dash
2
+ from dash import Dash, html, dcc
3
+
4
+ app = Dash(__name__, use_pages=True)
5
+
6
+ app.layout = html.Div([
7
+ html.H1('Multi-page app with Dash Pages'),
8
+ html.Div([
9
+ html.Div(
10
+ dcc.Link(f"{page['name']} - {page['path']}", href=page["relative_path"])
11
+ ) for page in dash.page_registry.values()
12
+ ]),
13
+ dash.page_container
14
+ ])
15
+
16
+ if __name__ == '__main__':
17
+ app.run(debug=True)