Skip to content

Commit 197a505

Browse files
committed
upgrade python covidcast version + add api key to python chunk in blog
1 parent ad85648 commit 197a505

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

content/blog/2020-08-28-api.Rmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,11 @@ According to the `r blogdown::shortcode_html("apireflink", "api/covidcast-signal
398398
this is the `fb-survey` data source's `smoothed_hh_cmnty_cli` signal.
399399
(Click the "Code" button to see the Python code used to produce this example.)
400400

401+
```{python, include = FALSE}
402+
import covidcast
403+
import os
404+
covidcast.use_api_key(os.environ['API_KEY'])
405+
```
401406
```{python python-data, dev='svg'}
402407
import covidcast
403408
from datetime import date

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ dependencies:
6262
- matplotlib
6363
- udunits2
6464
- pip:
65-
- covidcast==0.1.3
65+
- covidcast

0 commit comments

Comments
 (0)