Skip to content

Commit 8209109

Browse files
committed
Update demo notebooks to api=1.1.0
1 parent c685687 commit 8209109

File tree

4 files changed

+93
-101
lines changed

4 files changed

+93
-101
lines changed

docs/examples/jupyter-notebooks/export_to_file.ipynb

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5+
"metadata": {},
56
"source": [
67
"<em><sub>This page is available as an executable or viewable <strong>Jupyter Notebook</strong>:</sub></em>\n",
78
"<br/><br/>\n",
@@ -18,10 +19,7 @@
1819
"</a>\n",
1920
"<br/>\n",
2021
"<br/>"
21-
],
22-
"metadata": {
23-
"collapsed": false
24-
}
22+
]
2523
},
2624
{
2725
"cell_type": "code",
@@ -31,7 +29,7 @@
3129
{
3230
"data": {
3331
"text/html": [
34-
" <div id=\"Yj1UDu\"></div>\n",
32+
" <div id=\"StrSkb\"></div>\n",
3533
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
3634
" if(!window.letsPlotCallQueue) {\n",
3735
" window.letsPlotCallQueue = [];\n",
@@ -56,9 +54,9 @@
5654
" var div = document.createElement(\"div\");\n",
5755
" div.style.color = 'darkred';\n",
5856
" div.textContent = 'Error loading Lets-Plot JS';\n",
59-
" document.getElementById(\"Yj1UDu\").appendChild(div);\n",
57+
" document.getElementById(\"StrSkb\").appendChild(div);\n",
6058
" };\n",
61-
" var e = document.getElementById(\"Yj1UDu\");\n",
59+
" var e = document.getElementById(\"StrSkb\");\n",
6260
" e.appendChild(script);\n",
6361
" })();\n",
6462
" </script>"
@@ -69,7 +67,7 @@
6967
}
7068
],
7169
"source": [
72-
"%use lets-plot(api=1.1.0-alpha5, lib=1.5.4, js=1.5.4)"
70+
"%use lets-plot(api=1.1.0, lib=1.5.4, js=1.5.4)"
7371
]
7472
},
7573
{
@@ -114,7 +112,7 @@
114112
{
115113
"data": {
116114
"text/plain": [
117-
"/Users/Igor/Work_misc/jupyter/lets-plot-kotlin/examples/jupyter-notebooks-dev/lets-plot-images/density.png"
115+
"/Users/Igor/Work_misc/jupyter/lets-plot-kotlin/examples/jupyter-notebooks/lets-plot-images/density.png"
118116
]
119117
},
120118
"execution_count": 4,
@@ -165,7 +163,7 @@
165163
{
166164
"data": {
167165
"text/plain": [
168-
"/Users/Igor/Work_misc/jupyter/lets-plot-kotlin/examples/jupyter-notebooks-dev/lets-plot-images/density.svg"
166+
"/Users/Igor/Work_misc/jupyter/lets-plot-kotlin/examples/jupyter-notebooks/lets-plot-images/density.svg"
169167
]
170168
},
171169
"execution_count": 6,
@@ -346,9 +344,9 @@
346344
" <line x1=\"0.0\" y1=\"0.0\" x2=\"0.0\" y2=\"201.0\" stroke-width=\"1.0\" stroke=\"rgb(0,0,0)\" stroke-opacity=\"1.0\">\n",
347345
" </line>\n",
348346
" </g>\n",
349-
" <g transform=\"translate(29.1 0.0 ) \" clip-path=\"url(#MydS17)\" clip-bounds-jfx=\"[rect (0.0, 0.0), (377.3125778227906, 201.0)]\">\n",
347+
" <g transform=\"translate(29.1 0.0 ) \" clip-path=\"url(#jAozco)\" clip-bounds-jfx=\"[rect (0.0, 0.0), (377.3125778227906, 201.0)]\">\n",
350348
" <defs>\n",
351-
" <clipPath id=\"MydS17\">\n",
349+
" <clipPath id=\"jAozco\">\n",
352350
" <rect x=\"0.0\" y=\"0.0\" width=\"377.3125778227906\" height=\"201.0\">\n",
353351
" </rect>\n",
354352
" </clipPath>\n",
@@ -470,7 +468,7 @@
470468
{
471469
"data": {
472470
"text/plain": [
473-
"/Users/Igor/Work_misc/jupyter/lets-plot-kotlin/examples/jupyter-notebooks-dev/lets-plot-images/density.html"
471+
"/Users/Igor/Work_misc/jupyter/lets-plot-kotlin/examples/jupyter-notebooks/lets-plot-images/density.html"
474472
]
475473
},
476474
"execution_count": 8,
@@ -498,7 +496,7 @@
498496
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;library&quot; src=&quot;https://dl.bintray.com/jetbrains/lets-plot/lets-plot-latest.min.js&quot;>&lt;/script>\n",
499497
" &lt;/head>\n",
500498
" &lt;body>\n",
501-
" &lt;div id=&quot;IwrOwi&quot;>&lt;/div>\n",
499+
" &lt;div id=&quot;PdgGzl&quot;>&lt;/div>\n",
502500
" &lt;script type=&quot;text/javascript&quot; data-lets-plot-script=&quot;plot&quot;>\n",
503501
" var plotSpec={\n",
504502
"'mapping':{\n",
@@ -526,7 +524,7 @@
526524
"'geom':&quot;density&quot;\n",
527525
"}]\n",
528526
"};\n",
529-
" var plotContainer = document.getElementById(&quot;IwrOwi&quot;);\n",
527+
" var plotContainer = document.getElementById(&quot;PdgGzl&quot;);\n",
530528
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
531529
" &lt;/script>\n",
532530
" &lt;/body>\n",
@@ -562,4 +560,4 @@
562560
},
563561
"nbformat": 4,
564562
"nbformat_minor": 4
565-
}
563+
}

docs/examples/jupyter-notebooks/geotools_naturalearth.ipynb

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5+
"metadata": {},
56
"source": [
67
"<em><sub>This page is available as an executable or viewable <strong>Jupyter Notebook</strong>:</sub></em>\n",
78
"<br/><br/>\n",
@@ -18,10 +19,7 @@
1819
"</a>\n",
1920
"<br/>\n",
2021
"<br/>"
21-
],
22-
"metadata": {
23-
"collapsed": false
24-
}
22+
]
2523
},
2624
{
2725
"cell_type": "markdown",
@@ -67,7 +65,7 @@
6765
{
6866
"data": {
6967
"text/html": [
70-
" <div id=\"QarBBg\"></div>\n",
68+
" <div id=\"iRQ7Y6\"></div>\n",
7169
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
7270
" if(!window.letsPlotCallQueue) {\n",
7371
" window.letsPlotCallQueue = [];\n",
@@ -92,9 +90,9 @@
9290
" var div = document.createElement(\"div\");\n",
9391
" div.style.color = 'darkred';\n",
9492
" div.textContent = 'Error loading Lets-Plot JS';\n",
95-
" document.getElementById(\"QarBBg\").appendChild(div);\n",
93+
" document.getElementById(\"iRQ7Y6\").appendChild(div);\n",
9694
" };\n",
97-
" var e = document.getElementById(\"QarBBg\");\n",
95+
" var e = document.getElementById(\"iRQ7Y6\");\n",
9896
" e.appendChild(script);\n",
9997
" })();\n",
10098
" </script>"
@@ -105,7 +103,7 @@
105103
}
106104
],
107105
"source": [
108-
"%use lets-plot(api=1.1.0-alpha5, lib=1.5.4, js=1.5.4)"
106+
"%use lets-plot(api=1.1.0, lib=1.5.4, js=1.5.4)"
109107
]
110108
},
111109
{
@@ -115,7 +113,7 @@
115113
"outputs": [],
116114
"source": [
117115
"// Initialize Lets-Plot GeoTools extension. \n",
118-
"%use lets-plot-gt(api=1.1.0-alpha5, gt=\"[23,)\")"
116+
"%use lets-plot-gt(api=1.1.0, gt=\"[23,)\")"
119117
]
120118
},
121119
{
@@ -126,7 +124,7 @@
126124
{
127125
"data": {
128126
"text/plain": [
129-
"Lets-Plot Kotlin API v.1.1.0-alpha5. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.1.5.4."
127+
"Lets-Plot Kotlin API v.1.1.0. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.1.5.4."
130128
]
131129
},
132130
"execution_count": 3,
@@ -223,7 +221,7 @@
223221
{
224222
"data": {
225223
"text/html": [
226-
" <div id=\"WoCpOw\"></div>\n",
224+
" <div id=\"aSPUIA\"></div>\n",
227225
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
228226
" (function() {\n",
229227
" var plotSpec={\n",
@@ -266,7 +264,7 @@
266264
"'axis_text':\"blank\"\n",
267265
"}\n",
268266
"};\n",
269-
" var plotContainer = document.getElementById(\"WoCpOw\");\n",
267+
" var plotContainer = document.getElementById(\"aSPUIA\");\n",
270268
" window.letsPlotCall(function() {{\n",
271269
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
272270
" }});\n",
@@ -308,7 +306,7 @@
308306
{
309307
"data": {
310308
"text/html": [
311-
" <div id=\"3RbCUn\"></div>\n",
309+
" <div id=\"EEDRFP\"></div>\n",
312310
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
313311
" (function() {\n",
314312
" var plotSpec={\n",
@@ -349,7 +347,7 @@
349347
"'axis_text':\"blank\"\n",
350348
"}\n",
351349
"};\n",
352-
" var plotContainer = document.getElementById(\"3RbCUn\");\n",
350+
" var plotContainer = document.getElementById(\"EEDRFP\");\n",
353351
" window.letsPlotCall(function() {{\n",
354352
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
355353
" }});\n",
@@ -416,7 +414,7 @@
416414
{
417415
"data": {
418416
"text/html": [
419-
" <div id=\"Sc7Fm1\"></div>\n",
417+
" <div id=\"gv2Zw5\"></div>\n",
420418
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
421419
" (function() {\n",
422420
" var plotSpec={\n",
@@ -479,7 +477,7 @@
479477
"'axis_text':\"blank\"\n",
480478
"}\n",
481479
"};\n",
482-
" var plotContainer = document.getElementById(\"Sc7Fm1\");\n",
480+
" var plotContainer = document.getElementById(\"gv2Zw5\");\n",
483481
" window.letsPlotCall(function() {{\n",
484482
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
485483
" }});\n",
@@ -539,7 +537,7 @@
539537
{
540538
"data": {
541539
"text/html": [
542-
" <div id=\"d9eaDJ\"></div>\n",
540+
" <div id=\"62hOgY\"></div>\n",
543541
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
544542
" (function() {\n",
545543
" var plotSpec={\n",
@@ -588,7 +586,7 @@
588586
"}\n",
589587
"}]\n",
590588
"};\n",
591-
" var plotContainer = document.getElementById(\"d9eaDJ\");\n",
589+
" var plotContainer = document.getElementById(\"62hOgY\");\n",
592590
" window.letsPlotCall(function() {{\n",
593591
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
594592
" }});\n",
@@ -633,7 +631,7 @@
633631
{
634632
"data": {
635633
"text/html": [
636-
" <div id=\"KUIywp\"></div>\n",
634+
" <div id=\"wNHYoR\"></div>\n",
637635
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
638636
" (function() {\n",
639637
" var plotSpec={\n",
@@ -740,7 +738,7 @@
740738
"'axis_text':\"blank\"\n",
741739
"}\n",
742740
"};\n",
743-
" var plotContainer = document.getElementById(\"KUIywp\");\n",
741+
" var plotContainer = document.getElementById(\"wNHYoR\");\n",
744742
" window.letsPlotCall(function() {{\n",
745743
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
746744
" }});\n",
@@ -787,7 +785,7 @@
787785
{
788786
"data": {
789787
"text/html": [
790-
" <div id=\"2uemd9\"></div>\n",
788+
" <div id=\"jgVVYp\"></div>\n",
791789
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
792790
" (function() {\n",
793791
" var plotSpec={\n",
@@ -828,7 +826,7 @@
828826
"'axis_text':\"blank\"\n",
829827
"}\n",
830828
"};\n",
831-
" var plotContainer = document.getElementById(\"2uemd9\");\n",
829+
" var plotContainer = document.getElementById(\"jgVVYp\");\n",
832830
" window.letsPlotCall(function() {{\n",
833831
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
834832
" }});\n",
@@ -858,7 +856,7 @@
858856
{
859857
"data": {
860858
"text/html": [
861-
" <div id=\"EPq7fG\"></div>\n",
859+
" <div id=\"Sm9JxH\"></div>\n",
862860
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
863861
" (function() {\n",
864862
" var plotSpec={\n",
@@ -899,7 +897,7 @@
899897
"'axis_text':\"blank\"\n",
900898
"}\n",
901899
"};\n",
902-
" var plotContainer = document.getElementById(\"EPq7fG\");\n",
900+
" var plotContainer = document.getElementById(\"Sm9JxH\");\n",
903901
" window.letsPlotCall(function() {{\n",
904902
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
905903
" }});\n",
@@ -957,7 +955,7 @@
957955
{
958956
"data": {
959957
"text/html": [
960-
" <div id=\"x20Iio\"></div>\n",
958+
" <div id=\"sMkqfM\"></div>\n",
961959
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
962960
" (function() {\n",
963961
" var plotSpec={\n",
@@ -1008,7 +1006,7 @@
10081006
"'axis_text':\"blank\"\n",
10091007
"}\n",
10101008
"};\n",
1011-
" var plotContainer = document.getElementById(\"x20Iio\");\n",
1009+
" var plotContainer = document.getElementById(\"sMkqfM\");\n",
10121010
" window.letsPlotCall(function() {{\n",
10131011
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
10141012
" }});\n",
@@ -1052,4 +1050,4 @@
10521050
},
10531051
"nbformat": 4,
10541052
"nbformat_minor": 4
1055-
}
1053+
}

0 commit comments

Comments
 (0)