This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Only if you are using macOS | |
| venv *.pyc .DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web: gunicorn app:server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dash==1.13.3 | |
| pandas==1.0.5 | |
| gunicorn==20.0.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app = dash.Dash(__name__, external_stylesheets=external_stylesheets) | |
| server = app.server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git --version | |
| heroku --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @app.callback( | |
| [Output("price-chart", "figure"), Output("volume-chart", "figure")], | |
| [ | |
| Input("region-filter", "value"), | |
| Input("type-filter", "value"), | |
| Input("date-range", "start_date"), | |
| Input("date-range", "end_date"), | |
| ], | |
| ) | |
| def update_charts(region, avocado_type, start_date, end_date): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html.Div( | |
| children=[ | |
| html.Div( | |
| children=dcc.Graph( | |
| id="price-chart", config={"displayModeBar": False}, | |
| ), | |
| className="card", | |
| ), | |
| html.Div( | |
| children=dcc.Graph( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html.Div( | |
| children=[ | |
| html.Div(children="Region", className="menu-title"), | |
| dcc.Dropdown( | |
| id="region-filter", | |
| options=[ | |
| {"label": region, "value": region} | |
| for region in np.sort(data.region.unique()) | |
| ], | |
| value="Albany", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html.Div( | |
| children=[ | |
| html.Div( | |
| children=[ | |
| html.Div(children="Region", className="menu-title"), | |
| dcc.Dropdown( | |
| id="region-filter", | |
| options=[ | |
| {"label": region, "value": region} | |
| for region in np.sort(data.region.unique()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| font-family: "Lato", sans-serif; | |
| margin: 0; | |
| background-color: #F7F7F7; | |
| } | |
| .header { | |
| background-color: #222222; | |
| height: 288px; | |
| padding: 16px 0 0 0; |
NewerOlder