From 8d582ddaab6a393166ea8b5b1c01d9629ac9761f Mon Sep 17 00:00:00 2001 From: Trevor Nederlof Date: Wed, 6 Dec 2023 11:11:40 -0500 Subject: [PATCH 1/7] Add load_dotenv explicitly to dash-app --- dash-app/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dash-app/app.py b/dash-app/app.py index 0068d20..fe0f626 100644 --- a/dash-app/app.py +++ b/dash-app/app.py @@ -1,3 +1,5 @@ +from dotenv import load_dotenv +load_dotenv() import dash import pandas as pd from dash import dcc, html From 6a83b874a8f4894cdfc9191d02322bded92d41ea Mon Sep 17 00:00:00 2001 From: Trevor Nederlof Date: Wed, 6 Dec 2023 11:20:55 -0500 Subject: [PATCH 2/7] Add load_dotenv to all dash apps --- dash-bikeshare/app.py | 3 ++- dash-stock-pricing/app.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dash-bikeshare/app.py b/dash-bikeshare/app.py index b6cd081..d11f42f 100644 --- a/dash-bikeshare/app.py +++ b/dash-bikeshare/app.py @@ -1,3 +1,5 @@ +from dotenv import load_dotenv +load_dotenv() import dash import os import pandas as pd @@ -6,7 +8,6 @@ from dash import dcc, html from dash.dependencies import Input, Output -from dotenv import load_dotenv app = dash.Dash(__name__) diff --git a/dash-stock-pricing/app.py b/dash-stock-pricing/app.py index d5c73f2..70add8b 100644 --- a/dash-stock-pricing/app.py +++ b/dash-stock-pricing/app.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +from dotenv import load_dotenv +load_dotenv() import os import dash @@ -442,4 +444,4 @@ def update_scatter_plot(all_tickers, price): if __name__ == "__main__": - app.run_server(debug=True) \ No newline at end of file + app.run_server(debug=True) From f9b88c8c9fa793126f167d864a5f8fd4ce1f8e91 Mon Sep 17 00:00:00 2001 From: Trevor Nederlof Date: Wed, 6 Dec 2023 11:29:50 -0500 Subject: [PATCH 3/7] Update dash-stock-pricing dep packages --- dash-stock-pricing/app.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/dash-stock-pricing/app.py b/dash-stock-pricing/app.py index d5c73f2..0d51cfd 100644 --- a/dash-stock-pricing/app.py +++ b/dash-stock-pricing/app.py @@ -3,12 +3,7 @@ import dash import dash_bootstrap_components as dbc - -# from dash import dcc -# from dash import html -import dash_table as dt -import dash_core_components as dcc -import dash_html_components as html +from dash import dash_table, dcc, html from dash.dependencies import Input, Output import pandas as pd import plotly.express as px @@ -155,7 +150,7 @@ def custom_date_parser(date): ), ] -max_table_dash = dt.DataTable( +max_table_dash = dash_table.DataTable( data=max_vol.to_dict("records"), style_as_list_view=True, fill_width=False, @@ -442,4 +437,4 @@ def update_scatter_plot(all_tickers, price): if __name__ == "__main__": - app.run_server(debug=True) \ No newline at end of file + app.run_server(debug=True) From 62c5e9a792c996cd909340f9cdf26b419e8ad8fc Mon Sep 17 00:00:00 2001 From: Trevor Nederlof Date: Wed, 6 Dec 2023 13:06:44 -0500 Subject: [PATCH 4/7] Add anywidget for altair graph to work --- shiny-income-share/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shiny-income-share/requirements.txt b/shiny-income-share/requirements.txt index b275cbd..a404adc 100644 --- a/shiny-income-share/requirements.txt +++ b/shiny-income-share/requirements.txt @@ -1,7 +1,8 @@ --index-url https://p3m.dev/pypi/2022-12-09/simple +anywidget shiny shinywidgets vega altair pandas -six \ No newline at end of file +six From 9843da820d360f160dc268ec379f4a88737d8d2d Mon Sep 17 00:00:00 2001 From: Trevor Nederlof Date: Wed, 6 Dec 2023 15:29:09 -0500 Subject: [PATCH 5/7] Update dash-stock-pricing/app.py Co-authored-by: E. David Aja --- dash-stock-pricing/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash-stock-pricing/app.py b/dash-stock-pricing/app.py index 70add8b..7e0d588 100644 --- a/dash-stock-pricing/app.py +++ b/dash-stock-pricing/app.py @@ -444,4 +444,4 @@ def update_scatter_plot(all_tickers, price): if __name__ == "__main__": - app.run_server(debug=True) + app.run() From 7f3c7e0a3c9cb521c1056b2fbf9c0854f85e3375 Mon Sep 17 00:00:00 2001 From: Trevor Nederlof Date: Wed, 6 Dec 2023 15:31:27 -0500 Subject: [PATCH 6/7] Update dash-stock-pricing/app.py Co-authored-by: E. David Aja --- dash-stock-pricing/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash-stock-pricing/app.py b/dash-stock-pricing/app.py index 0d51cfd..6eb5488 100644 --- a/dash-stock-pricing/app.py +++ b/dash-stock-pricing/app.py @@ -437,4 +437,4 @@ def update_scatter_plot(all_tickers, price): if __name__ == "__main__": - app.run_server(debug=True) + app.run() From afa9610dad4860234059c78e6247c76d07cc027d Mon Sep 17 00:00:00 2001 From: Trevor Nederlof Date: Wed, 6 Dec 2023 15:35:39 -0500 Subject: [PATCH 7/7] Update date snapshot --- shiny-income-share/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiny-income-share/requirements.txt b/shiny-income-share/requirements.txt index a404adc..e66d0c4 100644 --- a/shiny-income-share/requirements.txt +++ b/shiny-income-share/requirements.txt @@ -1,4 +1,4 @@ ---index-url https://p3m.dev/pypi/2022-12-09/simple +--index-url https://p3m.dev/pypi/2023-12-05/simple anywidget shiny shinywidgets