Skip to content

Commit 35e2dc7

Browse files
authored
Merge pull request #168 from jrbourbeau/hide-solution-cells
Hide solutions cells
2 parents febc1c6 + ed2808b commit 35e2dc7

File tree

6 files changed

+34
-22
lines changed

6 files changed

+34
-22
lines changed

01_dask.delayed.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,11 @@
251251
{
252252
"cell_type": "code",
253253
"execution_count": null,
254-
"metadata": {},
254+
"metadata": {
255+
"jupyter": {
256+
"source_hidden": true
257+
}
258+
},
255259
"outputs": [],
256260
"source": [
257261
"results = []\n",

01x_lazy.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,11 @@
261261
{
262262
"cell_type": "code",
263263
"execution_count": null,
264-
"metadata": {},
264+
"metadata": {
265+
"jupyter": {
266+
"source_hidden": true
267+
}
268+
},
265269
"outputs": [],
266270
"source": [
267271
"## verbose version\n",

02_bag.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -678,13 +678,6 @@
678678
"source": [
679679
"client.shutdown()"
680680
]
681-
},
682-
{
683-
"cell_type": "code",
684-
"execution_count": null,
685-
"metadata": {},
686-
"outputs": [],
687-
"source": []
688681
}
689682
],
690683
"metadata": {

03_array.ipynb

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@
161161
"This approach is overkill for our case but does nicely generalize if we don't know the size of the array or individual blocks beforehand."
162162
]
163163
},
164+
{
165+
"cell_type": "code",
166+
"execution_count": null,
167+
"metadata": {},
168+
"outputs": [],
169+
"source": [
170+
"# Compute the mean of the array"
171+
]
172+
},
164173
{
165174
"cell_type": "code",
166175
"execution_count": null,
@@ -171,7 +180,6 @@
171180
},
172181
"outputs": [],
173182
"source": [
174-
"# Compute the mean of the array\n",
175183
"sums = []\n",
176184
"lengths = []\n",
177185
"for i in range(0, 1000000000, 1000000):\n",
@@ -733,19 +741,18 @@
733741
"execution_count": null,
734742
"metadata": {},
735743
"outputs": [],
736-
"source": []
737-
},
738-
{
739-
"cell_type": "code",
740-
"execution_count": null,
741-
"metadata": {},
742-
"outputs": [],
743-
"source": []
744+
"source": [
745+
"# ..."
746+
]
744747
},
745748
{
746749
"cell_type": "code",
747750
"execution_count": null,
748-
"metadata": {},
751+
"metadata": {
752+
"jupyter": {
753+
"source_hidden": true
754+
}
755+
},
749756
"outputs": [],
750757
"source": [
751758
"import h5py\n",

06_distributed_advanced.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@
206206
{
207207
"cell_type": "code",
208208
"execution_count": null,
209-
"metadata": {},
209+
"metadata": {
210+
"jupyter": {
211+
"source_hidden": true
212+
}
213+
},
210214
"outputs": [],
211215
"source": [
212216
"x = c.submit(inc, 1)\n",
@@ -496,7 +500,7 @@
496500
" \n",
497501
" # update plot\n",
498502
" source.stream({'x': [newx], 'y': [newy], 'c': ['grey']}, rollover=20)\n",
499-
" push_notebook(t)\n",
503+
" push_notebook(document=t)\n",
500504
" \n",
501505
" # add new point, dynamically, to work on the cluster\n",
502506
" new_point = c.submit(rosenbrock, (newx, newy))\n",

binder/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- h5py
1111
- scipy>=1.3.0
1212
- toolz
13-
- bokeh>=1.4.0
13+
- bokeh>=2.0.0
1414
- dask=2.11.0
1515
# TODO: Bump dask-labextension to >=2 once extensions have been made compatibility updates
1616
- dask-labextension=1.1.0

0 commit comments

Comments
 (0)