Skip to content

Commit 42d60cb

Browse files
committed
Use progress kwarg
1 parent cbb541d commit 42d60cb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tutorials/dev-model-manual/index.qmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ model2 = gdemo2([1.5, 2.0])
5252
We can sample from this model in the same way:
5353

5454
```{julia}
55-
setprogress!(false)
56-
chain = sample(model2, NUTS(), 1000)
55+
chain = sample(model2, NUTS(), 1000; progress=false)
5756
```
5857

5958
The subsequent pages in this section will show how the `@model` macro does this behind-the-scenes.

tutorials/usage-generated-quantities/index.qmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ We can generate draws from these variables — in this case, `x` and `y` — by
3939
For example, in the above reparametrization, we sample from our model:
4040

4141
```{julia}
42-
setprogress!(false)
43-
chain = sample(Neal(), NUTS(), 1000)
42+
chain = sample(Neal(), NUTS(), 1000; progress=false)
4443
```
4544

4645
Notice that only `x_raw` and `y_raw` are stored in the chain; `x` and `y` are not because they do not appear on the left-hand side of a tilde-statement.

0 commit comments

Comments
 (0)