|
40 | 40 | {
|
41 | 41 | "data": {
|
42 | 42 | "text/html": [
|
43 |
| - " <div id=\"DzDtQ1\"></div>\n", |
| 43 | + " <div id=\"dHJWSo\"></div>\n", |
44 | 44 | " <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
|
45 | 45 | " if(!window.letsPlotCallQueue) {\n",
|
46 | 46 | " window.letsPlotCallQueue = [];\n",
|
|
51 | 51 | " (function() {\n",
|
52 | 52 | " var script = document.createElement(\"script\");\n",
|
53 | 53 | " script.type = \"text/javascript\";\n",
|
54 |
| - " script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v3.1.0/js-package/distr/lets-plot.min.js\";\n", |
| 54 | + " script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v3.2.0/js-package/distr/lets-plot.min.js\";\n", |
55 | 55 | " script.onload = function() {\n",
|
56 | 56 | " window.letsPlotCall = function(f) {f();};\n",
|
57 | 57 | " window.letsPlotCallQueue.forEach(function(f) {f();});\n",
|
|
65 | 65 | " var div = document.createElement(\"div\");\n",
|
66 | 66 | " div.style.color = 'darkred';\n",
|
67 | 67 | " div.textContent = 'Error loading Lets-Plot JS';\n",
|
68 |
| - " document.getElementById(\"DzDtQ1\").appendChild(div);\n", |
| 68 | + " document.getElementById(\"dHJWSo\").appendChild(div);\n", |
69 | 69 | " };\n",
|
70 |
| - " var e = document.getElementById(\"DzDtQ1\");\n", |
| 70 | + " var e = document.getElementById(\"dHJWSo\");\n", |
71 | 71 | " e.appendChild(script);\n",
|
72 | 72 | " })();\n",
|
73 | 73 | " </script>"
|
74 | 74 | ]
|
75 | 75 | },
|
76 | 76 | "metadata": {},
|
77 | 77 | "output_type": "display_data"
|
| 78 | + }, |
| 79 | + { |
| 80 | + "data": { |
| 81 | + "text/html": [ |
| 82 | + " <div id=\"kotlin_out_0\"></div>\n", |
| 83 | + " <script type=\"text/javascript\">\n", |
| 84 | + " if(!window.kotlinQueues) {\n", |
| 85 | + " window.kotlinQueues = {};\n", |
| 86 | + " }\n", |
| 87 | + " if(!window.kotlinQueues[\"DataFrame\"]) {\n", |
| 88 | + " var resQueue = [];\n", |
| 89 | + " window.kotlinQueues[\"DataFrame\"] = resQueue;\n", |
| 90 | + " window[\"call_DataFrame\"] = function(f) {\n", |
| 91 | + " resQueue.push(f);\n", |
| 92 | + " }\n", |
| 93 | + " }\n", |
| 94 | + " (function (){\n", |
| 95 | + " var modifiers = [(function(script) {\n", |
| 96 | + " script.src = \"https://cdn.jsdelivr.net/gh/Kotlin/dataframe@3db46ccccaa1291c0627307d64133317f545e6ae/core/src/main/resources/init.js\"\n", |
| 97 | + " script.type = \"text/javascript\";\n", |
| 98 | + "})];\n", |
| 99 | + " var e = document.getElementById(\"kotlin_out_0\");\n", |
| 100 | + " modifiers.forEach(function (gen) {\n", |
| 101 | + " var script = document.createElement(\"script\");\n", |
| 102 | + " gen(script)\n", |
| 103 | + " script.addEventListener(\"load\", function() {\n", |
| 104 | + " window[\"call_DataFrame\"] = function(f) {f();};\n", |
| 105 | + " window.kotlinQueues[\"DataFrame\"].forEach(function(f) {f();});\n", |
| 106 | + " window.kotlinQueues[\"DataFrame\"] = [];\n", |
| 107 | + " }, false);\n", |
| 108 | + " script.addEventListener(\"error\", function() {\n", |
| 109 | + " window[\"call_DataFrame\"] = function(f) {};\n", |
| 110 | + " window.kotlinQueues[\"DataFrame\"] = [];\n", |
| 111 | + " var div = document.createElement(\"div\");\n", |
| 112 | + " div.style.color = 'darkred';\n", |
| 113 | + " div.textContent = 'Error loading resource DataFrame';\n", |
| 114 | + " document.getElementById(\"kotlin_out_0\").appendChild(div);\n", |
| 115 | + " }, false);\n", |
| 116 | + " \n", |
| 117 | + " e.appendChild(script);\n", |
| 118 | + " });\n", |
| 119 | + " })();\n", |
| 120 | + " </script>" |
| 121 | + ] |
| 122 | + }, |
| 123 | + "metadata": {}, |
| 124 | + "output_type": "display_data" |
| 125 | + }, |
| 126 | + { |
| 127 | + "data": { |
| 128 | + "text/html": [ |
| 129 | + " <style>\n", |
| 130 | + " :root {\n", |
| 131 | + " --background: #fff;\n", |
| 132 | + " --background-odd: #f5f5f5;\n", |
| 133 | + " --background-hover: #d9edfd;\n", |
| 134 | + " --header-text-color: #474747;\n", |
| 135 | + " --text-color: #848484;\n", |
| 136 | + " --text-color-dark: #000;\n", |
| 137 | + " --text-color-medium: #737373;\n", |
| 138 | + " --text-color-pale: #b3b3b3;\n", |
| 139 | + " --inner-border-color: #aaa;\n", |
| 140 | + " --bold-border-color: #000;\n", |
| 141 | + " --link-color: #296eaa;\n", |
| 142 | + " --link-color-pale: #296eaa;\n", |
| 143 | + " --link-hover: #1a466c;\n", |
| 144 | + "}\n", |
| 145 | + "\n", |
| 146 | + ":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n", |
| 147 | + " --background: #303030;\n", |
| 148 | + " --background-odd: #3c3c3c;\n", |
| 149 | + " --background-hover: #464646;\n", |
| 150 | + " --header-text-color: #dddddd;\n", |
| 151 | + " --text-color: #b3b3b3;\n", |
| 152 | + " --text-color-dark: #dddddd;\n", |
| 153 | + " --text-color-medium: #b2b2b2;\n", |
| 154 | + " --text-color-pale: #737373;\n", |
| 155 | + " --inner-border-color: #707070;\n", |
| 156 | + " --bold-border-color: #777777;\n", |
| 157 | + " --link-color: #008dc0;\n", |
| 158 | + " --link-color-pale: #97e1fb;\n", |
| 159 | + " --link-hover: #00688e;\n", |
| 160 | + "}\n", |
| 161 | + "\n", |
| 162 | + "p.dataframe_description {\n", |
| 163 | + " color: var(--text-color-dark);\n", |
| 164 | + "}\n", |
| 165 | + "\n", |
| 166 | + "table.dataframe {\n", |
| 167 | + " font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n", |
| 168 | + " font-size: 12px;\n", |
| 169 | + " background-color: var(--background);\n", |
| 170 | + " color: var(--text-color-dark);\n", |
| 171 | + " border: none;\n", |
| 172 | + " border-collapse: collapse;\n", |
| 173 | + "}\n", |
| 174 | + "\n", |
| 175 | + "table.dataframe th, td {\n", |
| 176 | + " padding: 6px;\n", |
| 177 | + " border: 1px solid transparent;\n", |
| 178 | + " text-align: left;\n", |
| 179 | + "}\n", |
| 180 | + "\n", |
| 181 | + "table.dataframe th {\n", |
| 182 | + " background-color: var(--background);\n", |
| 183 | + " color: var(--header-text-color);\n", |
| 184 | + "}\n", |
| 185 | + "\n", |
| 186 | + "table.dataframe td {\n", |
| 187 | + " vertical-align: top;\n", |
| 188 | + "}\n", |
| 189 | + "\n", |
| 190 | + "table.dataframe th.bottomBorder {\n", |
| 191 | + " border-bottom-color: var(--bold-border-color);\n", |
| 192 | + "}\n", |
| 193 | + "\n", |
| 194 | + "table.dataframe tbody > tr:nth-child(odd) {\n", |
| 195 | + " background: var(--background-odd);\n", |
| 196 | + "}\n", |
| 197 | + "\n", |
| 198 | + "table.dataframe tbody > tr:nth-child(even) {\n", |
| 199 | + " background: var(--background);\n", |
| 200 | + "}\n", |
| 201 | + "\n", |
| 202 | + "table.dataframe tbody > tr:hover {\n", |
| 203 | + " background: var(--background-hover);\n", |
| 204 | + "}\n", |
| 205 | + "\n", |
| 206 | + "table.dataframe a {\n", |
| 207 | + " cursor: pointer;\n", |
| 208 | + " color: var(--link-color);\n", |
| 209 | + " text-decoration: none;\n", |
| 210 | + "}\n", |
| 211 | + "\n", |
| 212 | + "table.dataframe tr:hover > td a {\n", |
| 213 | + " color: var(--link-color-pale);\n", |
| 214 | + "}\n", |
| 215 | + "\n", |
| 216 | + "table.dataframe a:hover {\n", |
| 217 | + " color: var(--link-hover);\n", |
| 218 | + " text-decoration: underline;\n", |
| 219 | + "}\n", |
| 220 | + "\n", |
| 221 | + "table.dataframe img {\n", |
| 222 | + " max-width: fit-content;\n", |
| 223 | + "}\n", |
| 224 | + "\n", |
| 225 | + "table.dataframe th.complex {\n", |
| 226 | + " background-color: var(--background);\n", |
| 227 | + " border: 1px solid var(--background);\n", |
| 228 | + "}\n", |
| 229 | + "\n", |
| 230 | + "table.dataframe .leftBorder {\n", |
| 231 | + " border-left-color: var(--inner-border-color);\n", |
| 232 | + "}\n", |
| 233 | + "\n", |
| 234 | + "table.dataframe .rightBorder {\n", |
| 235 | + " border-right-color: var(--inner-border-color);\n", |
| 236 | + "}\n", |
| 237 | + "\n", |
| 238 | + "table.dataframe .rightAlign {\n", |
| 239 | + " text-align: right;\n", |
| 240 | + "}\n", |
| 241 | + "\n", |
| 242 | + "table.dataframe .expanderSvg {\n", |
| 243 | + " width: 8px;\n", |
| 244 | + " height: 8px;\n", |
| 245 | + " margin-right: 3px;\n", |
| 246 | + "}\n", |
| 247 | + "\n", |
| 248 | + "table.dataframe .expander {\n", |
| 249 | + " display: flex;\n", |
| 250 | + " align-items: center;\n", |
| 251 | + "}\n", |
| 252 | + "\n", |
| 253 | + "/* formatting */\n", |
| 254 | + "\n", |
| 255 | + "table.dataframe .null {\n", |
| 256 | + " color: var(--text-color-pale);\n", |
| 257 | + "}\n", |
| 258 | + "\n", |
| 259 | + "table.dataframe .structural {\n", |
| 260 | + " color: var(--text-color-medium);\n", |
| 261 | + " font-weight: bold;\n", |
| 262 | + "}\n", |
| 263 | + "\n", |
| 264 | + "table.dataframe .dataFrameCaption {\n", |
| 265 | + " font-weight: bold;\n", |
| 266 | + "}\n", |
| 267 | + "\n", |
| 268 | + "table.dataframe .numbers {\n", |
| 269 | + " color: var(--text-color-dark);\n", |
| 270 | + "}\n", |
| 271 | + "\n", |
| 272 | + "table.dataframe td:hover .formatted .structural, .null {\n", |
| 273 | + " color: var(--text-color-dark);\n", |
| 274 | + "}\n", |
| 275 | + "\n", |
| 276 | + "table.dataframe tr:hover .formatted .structural, .null {\n", |
| 277 | + " color: var(--text-color-dark);\n", |
| 278 | + "}\n", |
| 279 | + "\n", |
| 280 | + "\n", |
| 281 | + " </style>" |
| 282 | + ] |
| 283 | + }, |
| 284 | + "metadata": {}, |
| 285 | + "output_type": "display_data" |
78 | 286 | }
|
79 | 287 | ],
|
80 | 288 | "source": [
|
81 | 289 | "%useLatestDescriptors\n",
|
82 |
| - "%use lets-plot" |
| 290 | + "%use lets-plot\n", |
| 291 | + "%use dataframe" |
83 | 292 | ]
|
84 | 293 | },
|
85 | 294 | {
|
|
91 | 300 | {
|
92 | 301 | "data": {
|
93 | 302 | "text/plain": [
|
94 |
| - "Lets-Plot Kotlin API v.4.3.0. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.3.1.0." |
| 303 | + "Lets-Plot Kotlin API v.4.4.1. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.3.2.0." |
95 | 304 | ]
|
96 | 305 | },
|
97 | 306 | "execution_count": 2,
|
|
106 | 315 | {
|
107 | 316 | "cell_type": "code",
|
108 | 317 | "execution_count": 3,
|
109 |
| - "id": "18678ebe", |
110 |
| - "metadata": {}, |
111 |
| - "outputs": [], |
112 |
| - "source": [ |
113 |
| - "%use krangl" |
114 |
| - ] |
115 |
| - }, |
116 |
| - { |
117 |
| - "cell_type": "code", |
118 |
| - "execution_count": 4, |
119 | 318 | "id": "6c918b67",
|
120 | 319 | "metadata": {},
|
121 | 320 | "outputs": [],
|
|
133 | 332 | },
|
134 | 333 | {
|
135 | 334 | "cell_type": "code",
|
136 |
| - "execution_count": 5, |
| 335 | + "execution_count": 4, |
137 | 336 | "id": "a43d751a",
|
138 | 337 | "metadata": {},
|
139 | 338 | "outputs": [
|
140 | 339 | {
|
141 | 340 | "data": {
|
142 | 341 | "text/html": [
|
143 |
| - " <div id=\"VehneV\"></div>\n", |
| 342 | + " <div id=\"KsmWGO\"></div>\n", |
144 | 343 | " <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
|
145 | 344 | " (function() {\n",
|
146 | 345 | " var plotSpec={\n",
|
|
181 | 380 | "}\n",
|
182 | 381 | "}]\n",
|
183 | 382 | "};\n",
|
184 |
| - " var plotContainer = document.getElementById(\"VehneV\");\n", |
| 383 | + " var plotContainer = document.getElementById(\"KsmWGO\");\n", |
185 | 384 | " window.letsPlotCall(function() {{\n",
|
186 | 385 | " LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
|
187 | 386 | " }});\n",
|
188 | 387 | " })(); \n",
|
189 | 388 | " </script>"
|
190 | 389 | ]
|
191 | 390 | },
|
192 |
| - "execution_count": 5, |
| 391 | + "execution_count": 4, |
193 | 392 | "metadata": {},
|
194 | 393 | "output_type": "execute_result"
|
195 | 394 | }
|
|
223 | 422 | },
|
224 | 423 | {
|
225 | 424 | "cell_type": "code",
|
226 |
| - "execution_count": 6, |
| 425 | + "execution_count": 5, |
227 | 426 | "id": "827cf9da",
|
228 | 427 | "metadata": {},
|
229 | 428 | "outputs": [
|
230 | 429 | {
|
231 | 430 | "data": {
|
232 | 431 | "text/html": [
|
233 |
| - " <div id=\"SOqZYN\"></div>\n", |
| 432 | + " <div id=\"8IJTNR\"></div>\n", |
234 | 433 | " <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
|
235 | 434 | " (function() {\n",
|
236 | 435 | " var plotSpec={\n",
|
|
279 | 478 | "}\n",
|
280 | 479 | "}]\n",
|
281 | 480 | "};\n",
|
282 |
| - " var plotContainer = document.getElementById(\"SOqZYN\");\n", |
| 481 | + " var plotContainer = document.getElementById(\"8IJTNR\");\n", |
283 | 482 | " window.letsPlotCall(function() {{\n",
|
284 | 483 | " LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
|
285 | 484 | " }});\n",
|
286 | 485 | " })(); \n",
|
287 | 486 | " </script>"
|
288 | 487 | ]
|
289 | 488 | },
|
290 |
| - "execution_count": 6, |
| 489 | + "execution_count": 5, |
291 | 490 | "metadata": {},
|
292 | 491 | "output_type": "execute_result"
|
293 | 492 | }
|
|
306 | 505 | },
|
307 | 506 | {
|
308 | 507 | "cell_type": "code",
|
309 |
| - "execution_count": 7, |
| 508 | + "execution_count": 6, |
310 | 509 | "id": "aa77766a",
|
311 | 510 | "metadata": {},
|
312 | 511 | "outputs": [
|
313 | 512 | {
|
314 | 513 | "data": {
|
315 | 514 | "text/html": [
|
316 |
| - " <div id=\"7oJ2OK\"></div>\n", |
| 515 | + " <div id=\"H5EN1O\"></div>\n", |
317 | 516 | " <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
|
318 | 517 | " (function() {\n",
|
319 | 518 | " var plotSpec={\n",
|
|
362 | 561 | "}\n",
|
363 | 562 | "}]\n",
|
364 | 563 | "};\n",
|
365 |
| - " var plotContainer = document.getElementById(\"7oJ2OK\");\n", |
| 564 | + " var plotContainer = document.getElementById(\"H5EN1O\");\n", |
366 | 565 | " window.letsPlotCall(function() {{\n",
|
367 | 566 | " LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
|
368 | 567 | " }});\n",
|
369 | 568 | " })(); \n",
|
370 | 569 | " </script>"
|
371 | 570 | ]
|
372 | 571 | },
|
373 |
| - "execution_count": 7, |
| 572 | + "execution_count": 6, |
374 | 573 | "metadata": {},
|
375 | 574 | "output_type": "execute_result"
|
376 | 575 | }
|
|
393 | 592 | "name": "kotlin",
|
394 | 593 | "nbconvert_exporter": "",
|
395 | 594 | "pygments_lexer": "kotlin",
|
396 |
| - "version": "1.7.20-dev-1299" |
| 595 | + "version": "1.8.20" |
397 | 596 | }
|
398 | 597 | },
|
399 | 598 | "nbformat": 4,
|
|
0 commit comments