Skip to content

Commit aae85d2

Browse files
authored
Merge branch 'master' into dash-datashader
2 parents 3426d65 + e9cee3c commit aae85d2

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

apps/dash-opioid-epidemic/README.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,37 @@
22

33
Poison induced death data was downloaded from [CDC Wonder](dash_app_screencast.gif), using cause-of-death codes X40–X44 (unintentional), X60–X64 (suicide), X85 (homicide), or Y10–Y14 (undetermined intent).
44

5-
[View the Dash app](https://dash-playground.plotly.host/dash-opioid-epidemic/)
5+
[View the Dash app](https://dash-gallery.plotly.host/dash-opioid-epidemic/)
66

77
## Getting Started
88

99
### Running the app locally
10-
11-
First create a virtual environment with conda or venv inside a temp folder, then activate it.
10+
We suggest you to create a separate virtual environment running Python 3 for this app, and install all of the required dependencies there. Run in Terminal/Command Prompt:
1211

1312
```
14-
virtualenv venv
13+
git clone https://github.com/plotly/dash-sample-apps
14+
cd dash-sample-apps/apps/dash-opioid-epidemic
15+
python3 -m virtualenv venv
16+
```
17+
In UNIX system:
1518

16-
# Windows
17-
venv\Scripts\activate
18-
# Or Linux
19+
```
1920
source venv/bin/activate
20-
2121
```
22-
23-
Clone the git repo, then install the requirements with pip
22+
In Windows:
2423

2524
```
26-
27-
git clone https://github.com/plotly/dash-sample-apps
28-
cd dash-sample-apps/apps/dash-opioid-epidemic
29-
pip install -r requirements.txt
30-
25+
venv\Scripts\activate
3126
```
3227

33-
Run the app
28+
To install all of the required packages to this environment, simply run:
3429

30+
```
31+
pip install -r requirements.txt
3532
```
3633

37-
python app.py
34+
and all of the required `pip` packages, will be installed, and the app will be able to run.
3835

39-
```
4036

4137
![plotly-dash-screencast](assets/app_screencast.gif)
4238

0 commit comments

Comments
 (0)