Skip to content

Commit bf5a1ea

Browse files
committed
Updates after tutorial
1 parent 8d10e6e commit bf5a1ea

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

00_intro.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@
146146
"Before we finish, please complete the survey. We will give you some time near the end to fill it out."
147147
]
148148
},
149+
{
150+
"cell_type": "code",
151+
"execution_count": null,
152+
"metadata": {},
153+
"outputs": [],
154+
"source": [
155+
"%config InteractiveShell.ast_node_interactivity='last_expr_or_assign'"
156+
]
157+
},
149158
{
150159
"cell_type": "markdown",
151160
"metadata": {},
@@ -173,8 +182,7 @@
173182
"metadata": {},
174183
"outputs": [],
175184
"source": [
176-
"lst = [1, \"hi\", 3.0, \"🤣\"]\n",
177-
"lst"
185+
"lst = [1, \"hi\", 3.0, \"🤣\"]"
178186
]
179187
},
180188
{
@@ -190,8 +198,7 @@
190198
"metadata": {},
191199
"outputs": [],
192200
"source": [
193-
"arr = np.array([1, 2, 3, 4])\n",
194-
"arr"
201+
"arr = np.array([1, 2, 3, 4])"
195202
]
196203
},
197204
{

01_fractal_accelerate.ipynb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,16 @@
436436
" return 2 * a + 3 * b"
437437
]
438438
},
439+
{
440+
"cell_type": "code",
441+
"execution_count": null,
442+
"metadata": {},
443+
"outputs": [],
444+
"source": [
445+
"%%time\n",
446+
"c = f(a, b)"
447+
]
448+
},
439449
{
440450
"cell_type": "code",
441451
"execution_count": null,

03_mcmc.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
"np.random.seed(123)\n",
218218
"data = np.random.randn(20)\n",
219219
"\n",
220-
"posterior = sampler(data, samples=15000, mu_init=1.0)"
220+
"posterior = sampler(data, samples=15_000, mu_init=1.0)"
221221
]
222222
},
223223
{

05_distributed.ipynb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,15 @@
174174
" worker.join()"
175175
]
176176
},
177+
{
178+
"cell_type": "code",
179+
"execution_count": null,
180+
"metadata": {},
181+
"outputs": [],
182+
"source": [
183+
"len(workers)"
184+
]
185+
},
177186
{
178187
"cell_type": "code",
179188
"execution_count": null,

0 commit comments

Comments
 (0)