File tree Expand file tree Collapse file tree 1 file changed +30
-23
lines changed Expand file tree Collapse file tree 1 file changed +30
-23
lines changed Original file line number Diff line number Diff line change 2
2
"cells" : [
3
3
{
4
4
"cell_type" : " code" ,
5
- "execution_count" : 1 ,
5
+ "execution_count" : null ,
6
6
"metadata" : {},
7
7
"outputs" : [],
8
8
"source" : [
9
+ " # one `warning`, shows active line token highlighting\n " ,
9
10
" from itertools import (accumulate, chain); accumulate\n " ,
10
11
" \n " ,
12
+ " # one `error`\n " ,
13
+ " XXXXXXXXXX"
14
+ ]
15
+ },
16
+ {
17
+ "cell_type" : " code" ,
18
+ "execution_count" : null ,
19
+ "metadata" : {},
20
+ "outputs" : [],
21
+ "source" : [
22
+ " # one `warning`, shows active line token highlighting\n " ,
23
+ " from itertools import (accumulate, chain); accumulate\n " ,
11
24
" \n " ,
12
- " # fibs :: Integer :: [Integer]\n " ,
13
- " def fibs(n):\n " ,
14
- " '''An accumulation of the first n integers in\n " ,
15
- " the Fibonacci series. The accumulator is a\n " ,
16
- " pair of the two preceding numbers.\n " ,
17
- " '''\n " ,
18
- " def go(ab, _):\n " ,
19
- " a, b = ab\n " ,
20
- " return (b, a + b)\n " ,
21
- " \n " ,
22
- " return [xy[1] for xy in accumulate(\n " ,
23
- " chain(\n " ,
24
- " [(0, 1)],\n " ,
25
- " range(1, n)\n " ,
26
- " ),\n " ,
27
- " go\n " ,
28
- " )]"
25
+ " # one `error`\n " ,
26
+ " XXXXXXXXXX"
29
27
]
30
28
},
31
29
{
35
33
"outputs" : [],
36
34
"source" : [
37
35
" %%R\n " ,
38
- " x = 1\n " ,
39
- " X = 1\n " ,
40
- " test \n " ,
41
- " valid\n " ,
42
- " 0 / \" a\" "
36
+ " # one `information`\n " ,
37
+ " test "
38
+ ]
39
+ },
40
+ {
41
+ "cell_type" : " code" ,
42
+ "execution_count" : null ,
43
+ "metadata" : {},
44
+ "outputs" : [],
45
+ "source" : [
46
+ " %%markdown\n " ,
47
+ " # Foo\n " ,
48
+ " # Foo\n " ,
49
+ " above, one `hint`"
43
50
]
44
51
}
45
52
],
You can’t perform that action at this time.
0 commit comments