Spaces:
Sleeping
Sleeping
Download app.py from Shantala/Dash-Example: direct link, hf CLI and curl.
- Browser
- Download file 710 Bytes
-
https://huggingface.co/spaces/Shantala/Dash-Example/resolve/main/app.py
- Command line
-
hf download hf://spaces/Shantala/Dash-Example/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Shantala/Dash-Example/resolve/main/app.py
710 Bytes
| import dash | |
| from dash import dcc, html | |
| # example for https://community.plotly.com/t/two-graphs-side-by-side/5312 | |
| external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] | |
| app = dash.Dash(external_stylesheets=external_stylesheets) | |
| # Expose the Flask server instance | |
| server = app.server | |
| app.layout = html.Div([ | |
| html.Div([ | |
| html.Div([ | |
| html.H3('Column 1'), | |
| dcc.Graph(id='g1', figure={'data': [{'y': [1, 2, 3]}]}) | |
| ], className="six columns"), | |
| html.Div([ | |
| html.H3('Column 2'), | |
| dcc.Graph(id='g2', figure={'data': [{'y': [1, 2, 3]}]}) | |
| ], className="six columns"), | |
| ], className="does-not-matter-can-be-container") | |
| ]) | |