インストール忘備録
sudo apt install python3-pip sudo pip install dash
vi hello.py ====================================== import dash from dash import dcc from dash import html app = dash.Dash() app.layout = html.Div(children=[ html.H1(children='Hello Dash'), html.Div(children='Dash Framework'), dcc.Graph( id='sample', figure={ 'data': [ {'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name': 'ABC'}, {'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': 'DEF'}, ], 'layout': { 'title': 'Sample Graph' } } ) ]) if __name__ == '__main__': app.run_server(debug=True, host='192.168.123.123') ======================================
python3 ./hello.py ## Dash is running on http://192.168.123.123:8050/
Connect to Dash
http://192.168.123.123:8050/