|
13 | 13 | "cell_type": "code",
|
14 | 14 | "execution_count": 1,
|
15 | 15 | "metadata": {},
|
| 16 | + "outputs": [ |
| 17 | + { |
| 18 | + "data": { |
| 19 | + "text/plain": [ |
| 20 | + "No Outputs" |
| 21 | + ] |
| 22 | + }, |
| 23 | + "execution_count": 1, |
| 24 | + "metadata": {}, |
| 25 | + "output_type": "execute_result" |
| 26 | + } |
| 27 | + ], |
| 28 | + "source": [ |
| 29 | + "// @UIService ui\n", |
| 30 | + "ui.setHeadless(true)" |
| 31 | + ] |
| 32 | + }, |
| 33 | + { |
| 34 | + "cell_type": "code", |
| 35 | + "execution_count": 2, |
| 36 | + "metadata": {}, |
16 | 37 | "outputs": [
|
17 | 38 | {
|
18 | 39 | "name": "stdout",
|
|
27 | 48 | "No Outputs"
|
28 | 49 | ]
|
29 | 50 | },
|
30 |
| - "execution_count": 1, |
| 51 | + "execution_count": 2, |
31 | 52 | "metadata": {},
|
32 | 53 | "output_type": "execute_result"
|
33 | 54 | }
|
|
38 | 59 | },
|
39 | 60 | {
|
40 | 61 | "cell_type": "code",
|
41 |
| - "execution_count": 2, |
| 62 | + "execution_count": 3, |
42 | 63 | "metadata": {},
|
43 | 64 | "outputs": [
|
44 | 65 | {
|
|
54 | 75 | "No Outputs"
|
55 | 76 | ]
|
56 | 77 | },
|
57 |
| - "execution_count": 2, |
| 78 | + "execution_count": 3, |
58 | 79 | "metadata": {},
|
59 | 80 | "output_type": "execute_result"
|
60 | 81 | }
|
|
73 | 94 | ]
|
74 | 95 | },
|
75 | 96 | {
|
76 |
| - "cell_type": "markdown", |
| 97 | + "cell_type": "code", |
| 98 | + "execution_count": 7, |
77 | 99 | "metadata": {},
|
| 100 | + "outputs": [ |
| 101 | + { |
| 102 | + "data": { |
| 103 | + "text/html": [ |
| 104 | + "<style>table.converted {color: #333; font-family: Helvetica, Arial, sans-serif; border-collapse: collapse; border-spacing: 0;}table.converted td, table.converted th {border: 1px solid #C9C7C7;}table.converted th, table.converted td.rowLabel {background: #626262; color: #FFFFFF; font-weight: bold; text-align: left;}table.converted td {text-align: left;}table.converted tr:nth-child(even) {background: #F3F3F3;}table.converted tr:nth-child(odd) {background: #FFFFFF;}table.converted tbody tr:hover {background: #BDF4B5;}table.converted td.rowLabel, table.converted th.rowLabel {display: none;}</style><table class =\"converted\"><thead><tr><th>Key</th><th>Value</th></tr></thead><tbody><tr><td>a​_string</td><td>Hello</td></tr><tr><td>a​_number</td><td>87</td></tr></tbody></table>" |
| 105 | + ] |
| 106 | + }, |
| 107 | + "execution_count": 7, |
| 108 | + "metadata": {}, |
| 109 | + "output_type": "execute_result" |
| 110 | + } |
| 111 | + ], |
78 | 112 | "source": [
|
79 | 113 | "// @NotebookService nb\n",
|
80 | 114 | "a_groovy_dict = [a_string: 'Hello', a_number: 87]\n",
|
81 | 115 | "nb.display(a_groovy_dict)"
|
82 | 116 | ]
|
83 | 117 | },
|
84 | 118 | {
|
85 |
| - "cell_type": "markdown", |
| 119 | + "cell_type": "code", |
| 120 | + "execution_count": 8, |
86 | 121 | "metadata": {},
|
| 122 | + "outputs": [ |
| 123 | + { |
| 124 | + "name": "stdout", |
| 125 | + "output_type": "stream", |
| 126 | + "text": [ |
| 127 | + "Test python language\n", |
| 128 | + "2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) \n", |
| 129 | + "[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)]\n" |
| 130 | + ] |
| 131 | + }, |
| 132 | + { |
| 133 | + "data": { |
| 134 | + "text/plain": [ |
| 135 | + "No Outputs" |
| 136 | + ] |
| 137 | + }, |
| 138 | + "execution_count": 8, |
| 139 | + "metadata": {}, |
| 140 | + "output_type": "execute_result" |
| 141 | + } |
| 142 | + ], |
87 | 143 | "source": [
|
88 | 144 | "#!python\n",
|
89 | 145 | "import sys\n",
|
|
92 | 148 | ]
|
93 | 149 | },
|
94 | 150 | {
|
95 |
| - "cell_type": "markdown", |
| 151 | + "cell_type": "code", |
| 152 | + "execution_count": 9, |
96 | 153 | "metadata": {},
|
| 154 | + "outputs": [ |
| 155 | + { |
| 156 | + "data": { |
| 157 | + "text/plain": [ |
| 158 | + "No Outputs" |
| 159 | + ] |
| 160 | + }, |
| 161 | + "execution_count": 9, |
| 162 | + "metadata": {}, |
| 163 | + "output_type": "execute_result" |
| 164 | + } |
| 165 | + ], |
97 | 166 | "source": [
|
98 | 167 | "#!groovy"
|
99 | 168 | ]
|
100 | 169 | },
|
101 | 170 | {
|
102 |
| - "cell_type": "markdown", |
| 171 | + "cell_type": "code", |
| 172 | + "execution_count": 10, |
103 | 173 | "metadata": {},
|
| 174 | + "outputs": [ |
| 175 | + { |
| 176 | + "name": "stdout", |
| 177 | + "output_type": "stream", |
| 178 | + "text": [ |
| 179 | + "This is groovy code\n" |
| 180 | + ] |
| 181 | + } |
| 182 | + ], |
104 | 183 | "source": [
|
105 | 184 | "println \"This is groovy code\""
|
106 | 185 | ]
|
107 | 186 | },
|
108 | 187 | {
|
109 |
| - "cell_type": "markdown", |
| 188 | + "cell_type": "code", |
| 189 | + "execution_count": 11, |
110 | 190 | "metadata": {},
|
| 191 | + "outputs": [ |
| 192 | + { |
| 193 | + "name": "stdout", |
| 194 | + "output_type": "stream", |
| 195 | + "text": [ |
| 196 | + "Hello\n", |
| 197 | + "87\n" |
| 198 | + ] |
| 199 | + }, |
| 200 | + { |
| 201 | + "data": { |
| 202 | + "text/plain": [ |
| 203 | + "No Outputs" |
| 204 | + ] |
| 205 | + }, |
| 206 | + "execution_count": 11, |
| 207 | + "metadata": {}, |
| 208 | + "output_type": "execute_result" |
| 209 | + } |
| 210 | + ], |
111 | 211 | "source": [
|
112 | 212 | "#!python\n",
|
113 | 213 | "print(a_groovy_dict[\"a_string\"])\n",
|
|
119 | 219 | },
|
120 | 220 | {
|
121 | 221 | "cell_type": "code",
|
122 |
| - "execution_count": 3, |
| 222 | + "execution_count": 12, |
123 | 223 | "metadata": {},
|
124 | 224 | "outputs": [
|
125 | 225 | {
|
|
128 | 228 | "<style>table.converted {color: #333; font-family: Helvetica, Arial, sans-serif; border-collapse: collapse; border-spacing: 0;}table.converted td, table.converted th {border: 1px solid #C9C7C7;}table.converted th, table.converted td.rowLabel {background: #626262; color: #FFFFFF; font-weight: bold; text-align: left;}table.converted td {text-align: left;}table.converted tr:nth-child(even) {background: #F3F3F3;}table.converted tr:nth-child(odd) {background: #FFFFFF;}table.converted tbody tr:hover {background: #BDF4B5;}table.converted td.rowLabel, table.converted th.rowLabel {display: none;}</style><table class =\"converted\"><thead><tr><th>Key</th><th>Value</th></tr></thead><tbody><tr><td>:a</td><td>4</td></tr><tr><td>:e</td><td><none></td></tr></tbody></table>"
|
129 | 229 | ]
|
130 | 230 | },
|
131 |
| - "execution_count": 3, |
| 231 | + "execution_count": 12, |
132 | 232 | "metadata": {},
|
133 | 233 | "output_type": "execute_result"
|
134 | 234 | }
|
|
140 | 240 | },
|
141 | 241 | {
|
142 | 242 | "cell_type": "code",
|
143 |
| - "execution_count": 4, |
| 243 | + "execution_count": 13, |
144 | 244 | "metadata": {},
|
145 | 245 | "outputs": [
|
146 | 246 | {
|
|
149 | 249 | "<style>table.converted {color: #333; font-family: Helvetica, Arial, sans-serif; border-collapse: collapse; border-spacing: 0;}table.converted td, table.converted th {border: 1px solid #C9C7C7;}table.converted th, table.converted td.rowLabel {background: #626262; color: #FFFFFF; font-weight: bold; text-align: left;}table.converted td {text-align: left;}table.converted tr:nth-child(even) {background: #F3F3F3;}table.converted tr:nth-child(odd) {background: #FFFFFF;}table.converted tbody tr:hover {background: #BDF4B5;}table.converted td.rowLabel, table.converted th.rowLabel {display: none;}</style><table class =\"converted\"><thead><tr><th>Key</th><th>Value</th></tr></thead><tbody><tr><td>a</td><td>4</td></tr><tr><td>e</td><td><none></td></tr></tbody></table>"
|
150 | 250 | ]
|
151 | 251 | },
|
152 |
| - "execution_count": 4, |
| 252 | + "execution_count": 13, |
153 | 253 | "metadata": {},
|
154 | 254 | "output_type": "execute_result"
|
155 | 255 | }
|
|
161 | 261 | },
|
162 | 262 | {
|
163 | 263 | "cell_type": "code",
|
164 |
| - "execution_count": 5, |
| 264 | + "execution_count": 14, |
165 | 265 | "metadata": {},
|
166 | 266 | "outputs": [
|
167 | 267 | {
|
|
170 | 270 | "<style>table.converted {color: #333; font-family: Helvetica, Arial, sans-serif; border-collapse: collapse; border-spacing: 0;}table.converted td, table.converted th {border: 1px solid #C9C7C7;}table.converted th, table.converted td.rowLabel {background: #626262; color: #FFFFFF; font-weight: bold; text-align: left;}table.converted td {text-align: left;}table.converted tr:nth-child(even) {background: #F3F3F3;}table.converted tr:nth-child(odd) {background: #FFFFFF;}table.converted tbody tr:hover {background: #BDF4B5;}table.converted td.rowLabel, table.converted th.rowLabel {display: none;}</style><table class =\"converted\"><thead><tr><th>Salutation</th><th>Valediction</th></tr></thead><tbody><tr><td>hello</td><td>goodbye</td></tr><tr><td>hi</td><td>bye</td></tr><tr><td>hey</td><td><none></td></tr></tbody></table>"
|
171 | 271 | ]
|
172 | 272 | },
|
173 |
| - "execution_count": 5, |
| 273 | + "execution_count": 14, |
174 | 274 | "metadata": {},
|
175 | 275 | "output_type": "execute_result"
|
176 | 276 | }
|
|
184 | 284 | ],
|
185 | 285 | "metadata": {
|
186 | 286 | "kernelspec": {
|
187 |
| - "display_name": "Scijava", |
| 287 | + "display_name": "SciJava", |
188 | 288 | "language": "groovy",
|
189 | 289 | "name": "scijava"
|
190 | 290 | },
|
|
0 commit comments