Skip to content

Commit 3cae879

Browse files
committed
more paint in diagnostic notebook
1 parent 12ca1ca commit 3cae879

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

atest/examples/Diagnostic.ipynb

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,28 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"metadata": {},
77
"outputs": [],
88
"source": [
9+
"# one `warning`, shows active line token highlighting\n",
910
"from itertools import (accumulate, chain); accumulate\n",
1011
"\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",
1124
"\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"
2927
]
3028
},
3129
{
@@ -35,11 +33,20 @@
3533
"outputs": [],
3634
"source": [
3735
"%%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`"
4350
]
4451
}
4552
],

0 commit comments

Comments
 (0)