Skip to content

Commit

Permalink
Fix up Python board_connect(). Addresses #25.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Sep 12, 2023
1 parent 589ec54 commit e23fa1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions slides/01-introduction.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ board |> vetiver_pin_write(v)
#| eval: false
from pins import board_connect
from vetiver import vetiver_pin_write
from dotenv import load_dotenv
load_dotenv()
board = board_connect(allow_pickle_read = True)
vetiver_pin_write(board, v)
Expand Down
5 changes: 1 addition & 4 deletions slides/02-deploy.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,11 @@ board |> vetiver_pin_write(v)
#| eval: false
from vetiver import VetiverModel, vetiver_pin_write
from pins import board_connect
import os
from dotenv import load_dotenv
load_dotenv()
api_key = os.getenv("CO_API_KEY")
rsc_url = os.getenv("CO_RSC_URL")
v = VetiverModel(inspection_fit, "chicago-inspections-python", prototype_data = X_train)
board = board_connect(server_url = rsc_url, api_key = api_key, allow_pickle_read = True)
board = board_connect(allow_pickle_read = True)
vetiver_pin_write(board, v)
```

Expand Down
6 changes: 1 addition & 5 deletions slides/03-deploy.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,10 @@ v
#| eval: false
from pins import board_connect
from vetiver import vetiver_pin_write
import os
from dotenv import load_dotenv
load_dotenv()
api_key = os.getenv("CO_API_KEY")
rsc_url = os.getenv("CO_RSC_URL")
board = board_connect(server_url = rsc_url, api_key = api_key, allow_pickle_read = True)
board = board_connect(allow_pickle_read = True)
vetiver_pin_write(board, v)
```

Expand Down

0 comments on commit e23fa1f

Please sign in to comment.