|
10 | 10 | "text/html": [
|
11 | 11 | "\r\n",
|
12 | 12 | "<div>\r\n",
|
13 |
| - " <div id='dotnet-interactive-this-cell-28751.6c5bc3419e7d4f0fba9610b517a8d24c' style='display: none'>\r\n", |
| 13 | + " <div id='dotnet-interactive-this-cell-21552.91bdddaa9c0f49eeb06e70d46df15153' style='display: none'>\r\n", |
14 | 14 | " The below script needs to be able to find the current output cell; this is an easy method to get it.\r\n",
|
15 | 15 | " </div>\r\n",
|
16 | 16 | " <script type='text/javascript'>\r\n",
|
|
70 | 70 | "}\r\n",
|
71 | 71 | "\r\n",
|
72 | 72 | "function loadDotnetInteractiveApi() {\r\n",
|
73 |
| - " probeAddresses([\"http://192.168.1.151:1025/\", \"http://127.0.0.1:1025/\"])\r\n", |
| 73 | + " probeAddresses([\"http://192.168.1.71:1000/\", \"http://172.19.160.1:1000/\", \"http://127.0.0.1:1000/\"])\r\n", |
74 | 74 | " .then((root) => {\r\n",
|
75 | 75 | " // use probing to find host url and api resources\r\n",
|
76 | 76 | " // load interactive helpers and language services\r\n",
|
77 | 77 | " let dotnetInteractiveRequire = require.config({\r\n",
|
78 |
| - " context: '28751.6c5bc3419e7d4f0fba9610b517a8d24c',\r\n", |
| 78 | + " context: '21552.91bdddaa9c0f49eeb06e70d46df15153',\r\n", |
79 | 79 | " paths: {\r\n",
|
80 | 80 | " 'dotnet-interactive': `${root}resources`\r\n",
|
81 | 81 | " }\r\n",
|
82 | 82 | " }) || require;\r\n",
|
83 | 83 | "\r\n",
|
84 | 84 | " let dotnetInteractiveExtensionsRequire = require.config({\r\n",
|
85 |
| - " context: '28751.6c5bc3419e7d4f0fba9610b517a8d24c',\r\n", |
| 85 | + " context: '21552.91bdddaa9c0f49eeb06e70d46df15153',\r\n", |
86 | 86 | " paths: {\r\n",
|
87 | 87 | " 'dotnet-interactive-extensions': `${root}extensions`\r\n",
|
88 | 88 | " }\r\n",
|
89 | 89 | " }) || require;\r\n",
|
| 90 | + "\r\n", |
90 | 91 | " if (!window.dotnetInteractiveRequire) {\r\n",
|
91 | 92 | " window.dotnetInteractiveRequire = dotnetInteractiveRequire;\r\n",
|
92 | 93 | " }\r\n",
|
|
131 | 132 | {
|
132 | 133 | "data": {
|
133 | 134 | "text/html": [
|
134 |
| - "<div><strong>Restore sources</strong><ul><li><span>/home/csharpfritz/dev/csharp_with_csharpfritz/src/NotebookUnit/bin/Debug</span></li></ul></div>" |
| 135 | + "<div><strong>Restore sources</strong><ul><li><span>c:/dev/csharp_with_csharpfritz/src/NotebookUnit/bin/Debug</span></li></ul></div>" |
| 136 | + ] |
| 137 | + }, |
| 138 | + "metadata": {}, |
| 139 | + "output_type": "display_data" |
| 140 | + }, |
| 141 | + { |
| 142 | + "data": { |
| 143 | + "text/html": [ |
| 144 | + "<div><strong>Restore sources</strong><ul><li><span>c:/dev/csharp_with_csharpfritz/src/NotebookUnit/bin/Debug</span></li><li><span>c:/dev/csharp_with_csharpfritz/src</span></li></ul></div>" |
135 | 145 | ]
|
136 | 146 | },
|
137 | 147 | "metadata": {},
|
|
145 | 155 | },
|
146 | 156 | "metadata": {},
|
147 | 157 | "output_type": "display_data"
|
| 158 | + }, |
| 159 | + { |
| 160 | + "data": { |
| 161 | + "text/plain": [ |
| 162 | + "Loaded kernel extension \"RunTestsMagicCommand\" from assembly C:\\Users\\jefritz\\.nuget\\packages\\notebookunit\\0.1.0\\interactive-extensions\\dotnet\\NotebookUnit.dll" |
| 163 | + ] |
| 164 | + }, |
| 165 | + "metadata": {}, |
| 166 | + "output_type": "display_data" |
| 167 | + }, |
| 168 | + { |
| 169 | + "data": { |
| 170 | + "text/markdown": [ |
| 171 | + "`RunTestsMagicCommand` is loaded. It enables testing in notebooks" |
| 172 | + ] |
| 173 | + }, |
| 174 | + "metadata": {}, |
| 175 | + "output_type": "display_data" |
148 | 176 | }
|
149 | 177 | ],
|
150 | 178 | "source": [
|
151 |
| - "#i nuget:/home/csharpfritz/dev/csharp_with_csharpfritz/src/NotebookUnit/bin/Debug\n", |
| 179 | + "#i nuget:c:/dev/csharp_with_csharpfritz/src/NotebookUnit/bin/Debug\n", |
| 180 | + "#i nuget:c:/dev/csharp_with_csharpfritz/src\n", |
| 181 | + "\n", |
152 | 182 | "#r nuget:NotebookUnit,0.1.0 "
|
153 | 183 | ]
|
154 | 184 | },
|
155 | 185 | {
|
156 | 186 | "cell_type": "code",
|
157 | 187 | "execution_count": 2,
|
158 | 188 | "metadata": {},
|
159 |
| - "outputs": [], |
| 189 | + "outputs": [ |
| 190 | + { |
| 191 | + "ename": "Unhandled exception", |
| 192 | + "evalue": "No tests", |
| 193 | + "output_type": "error", |
| 194 | + "traceback": [ |
| 195 | + "No tests" |
| 196 | + ] |
| 197 | + } |
| 198 | + ], |
160 | 199 | "source": [
|
161 |
| - "#!test -h" |
| 200 | + "public void DoThis() {\n", |
| 201 | + " display(\"Ran this\");\n", |
| 202 | + "}\n", |
| 203 | + "\n", |
| 204 | + "\n", |
| 205 | + "#!test -t new Action[] {() => true}" |
162 | 206 | ]
|
163 | 207 | }
|
164 | 208 | ],
|
|
0 commit comments