Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 6a83b87

Browse files
committed
Add load_dotenv to all dash apps
1 parent 8d582dd commit 6a83b87

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dash-bikeshare/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from dotenv import load_dotenv
2+
load_dotenv()
13
import dash
24
import os
35
import pandas as pd
@@ -6,7 +8,6 @@
68

79
from dash import dcc, html
810
from dash.dependencies import Input, Output
9-
from dotenv import load_dotenv
1011

1112
app = dash.Dash(__name__)
1213

dash-stock-pricing/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from dotenv import load_dotenv
3+
load_dotenv()
24
import os
35

46
import dash
@@ -442,4 +444,4 @@ def update_scatter_plot(all_tickers, price):
442444

443445

444446
if __name__ == "__main__":
445-
app.run_server(debug=True)
447+
app.run_server(debug=True)

0 commit comments

Comments
 (0)