Skip to content

Commit 81eaef3

Browse files
committed
Populate notebooks
1 parent c808105 commit 81eaef3

File tree

2 files changed

+491
-99
lines changed

2 files changed

+491
-99
lines changed

Exercises/julia_basics.ipynb

Lines changed: 52 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,24 @@
150150
},
151151
{
152152
"cell_type": "code",
153-
"execution_count": null,
153+
"execution_count": 5,
154154
"metadata": {},
155-
"outputs": [],
155+
"outputs": [
156+
{
157+
"ename": "BoundsError",
158+
"evalue": "BoundsError: attempt to access 3-element Vector{Int64} at index [0]",
159+
"output_type": "error",
160+
"traceback": [
161+
"BoundsError: attempt to access 3-element Vector{Int64} at index [0]\n",
162+
"\n",
163+
"Stacktrace:\n",
164+
" [1] getindex(A::Vector{Int64}, i1::Int64)\n",
165+
" @ Base .\\array.jl:861\n",
166+
" [2] top-level scope\n",
167+
" @ c:\\Users\\Davide\\git\\gitdf\\Teaching\\Exercises\\julia_basics.ipynb:1"
168+
]
169+
}
170+
],
156171
"source": [
157172
"c[0] # first element of the list"
158173
]
@@ -167,9 +182,24 @@
167182
},
168183
{
169184
"cell_type": "code",
170-
"execution_count": null,
185+
"execution_count": 6,
171186
"metadata": {},
172-
"outputs": [],
187+
"outputs": [
188+
{
189+
"ename": "BoundsError",
190+
"evalue": "BoundsError: attempt to access 3-element Vector{Int64} at index [-1]",
191+
"output_type": "error",
192+
"traceback": [
193+
"BoundsError: attempt to access 3-element Vector{Int64} at index [-1]\n",
194+
"\n",
195+
"Stacktrace:\n",
196+
" [1] getindex(A::Vector{Int64}, i1::Int64)\n",
197+
" @ Base .\\array.jl:861\n",
198+
" [2] top-level scope\n",
199+
" @ c:\\Users\\Davide\\git\\gitdf\\Teaching\\Exercises\\julia_basics.ipynb:1"
200+
]
201+
}
202+
],
173203
"source": [
174204
"c[-1]"
175205
]
@@ -188,7 +218,7 @@
188218
},
189219
{
190220
"cell_type": "code",
191-
"execution_count": 5,
221+
"execution_count": 7,
192222
"metadata": {},
193223
"outputs": [
194224
{
@@ -311,7 +341,7 @@
311341
},
312342
{
313343
"cell_type": "code",
314-
"execution_count": 11,
344+
"execution_count": 10,
315345
"metadata": {},
316346
"outputs": [
317347
{
@@ -346,7 +376,7 @@
346376
},
347377
{
348378
"cell_type": "code",
349-
"execution_count": 12,
379+
"execution_count": 11,
350380
"metadata": {},
351381
"outputs": [
352382
{
@@ -378,7 +408,7 @@
378408
},
379409
{
380410
"cell_type": "code",
381-
"execution_count": 13,
411+
"execution_count": 12,
382412
"metadata": {},
383413
"outputs": [
384414
{
@@ -405,25 +435,20 @@
405435
},
406436
{
407437
"cell_type": "code",
408-
"execution_count": 15,
438+
"execution_count": 13,
409439
"metadata": {},
410440
"outputs": [
411441
{
412442
"name": "stdout",
413443
"output_type": "stream",
414444
"text": [
415-
"c: [1, 2, 3, 4, 99, 105, 97, 111, 311348320, 356020736]\n",
445+
"c: [1, 2, 3, 4, 3]\n",
416446
"\n",
417447
"1: 1\n",
418448
"2: 2\n",
419449
"3: 3\n",
420450
"4: 4\n",
421-
"5: 99\n",
422-
"6: 105\n",
423-
"7: 97\n",
424-
"8: 111\n",
425-
"9: 311348320\n",
426-
"10: 356020736\n"
451+
"5: 3\n"
427452
]
428453
}
429454
],
@@ -457,7 +482,7 @@
457482
},
458483
{
459484
"cell_type": "code",
460-
"execution_count": 17,
485+
"execution_count": 14,
461486
"metadata": {},
462487
"outputs": [
463488
{
@@ -480,7 +505,7 @@
480505
},
481506
{
482507
"cell_type": "code",
483-
"execution_count": 18,
508+
"execution_count": 15,
484509
"metadata": {},
485510
"outputs": [
486511
{
@@ -509,7 +534,7 @@
509534
},
510535
{
511536
"cell_type": "code",
512-
"execution_count": 20,
537+
"execution_count": 16,
513538
"metadata": {},
514539
"outputs": [
515540
{
@@ -556,7 +581,7 @@
556581
},
557582
{
558583
"cell_type": "code",
559-
"execution_count": 21,
584+
"execution_count": 17,
560585
"metadata": {},
561586
"outputs": [
562587
{
@@ -577,7 +602,7 @@
577602
},
578603
{
579604
"cell_type": "code",
580-
"execution_count": 22,
605+
"execution_count": 18,
581606
"metadata": {},
582607
"outputs": [
583608
{
@@ -603,7 +628,7 @@
603628
},
604629
{
605630
"cell_type": "code",
606-
"execution_count": 24,
631+
"execution_count": 19,
607632
"metadata": {},
608633
"outputs": [],
609634
"source": [
@@ -621,7 +646,7 @@
621646
},
622647
{
623648
"cell_type": "code",
624-
"execution_count": 25,
649+
"execution_count": 20,
625650
"metadata": {},
626651
"outputs": [
627652
{
@@ -674,7 +699,7 @@
674699
},
675700
{
676701
"cell_type": "code",
677-
"execution_count": 28,
702+
"execution_count": 21,
678703
"metadata": {},
679704
"outputs": [
680705
{
@@ -717,7 +742,7 @@
717742
},
718743
{
719744
"cell_type": "code",
720-
"execution_count": 30,
745+
"execution_count": 22,
721746
"metadata": {},
722747
"outputs": [
723748
{
@@ -747,7 +772,7 @@
747772
},
748773
{
749774
"cell_type": "code",
750-
"execution_count": 37,
775+
"execution_count": 23,
751776
"metadata": {},
752777
"outputs": [
753778
{
@@ -790,7 +815,7 @@
790815
},
791816
{
792817
"cell_type": "code",
793-
"execution_count": 39,
818+
"execution_count": 24,
794819
"metadata": {},
795820
"outputs": [
796821
{

0 commit comments

Comments
 (0)