-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp_2.py
38 lines (32 loc) · 839 Bytes
/
app_2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from dash import Dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.express as px
#simulates two different dash apps
#requests pathname prefix tells the dash renderer where to look and request data
#dummy app 2
app2 = Dash(__name__,
requests_pathname_prefix='/app2/')
tako = 'https://github.com/Michael-fore/Dash_IIS/blob/master/tako.jpg?raw=true'
keana = 'https://github.com/Michael-fore/Dash_IIS/blob/master/keana.jpg?raw=true'
img_style = {
'width': '50%',
'height': 'auto'
}
app2.layout = html.Div([
html.H1('App 2'),
html.Div(
[
html.Div(
[html.H3('Tako'),
html.Img(src=tako, style=img_style)]
),
html.Div(
[html.H3('Keana'),
html.Img(src=keana, style=img_style)]
)],
style={'display':'flex'})
]
)
if __name__ == '__main__':
app2.run_server(debug=True)