Skip to content

Commit 5e6d590

Browse files
breandanileasile
andauthored
Fix syntax error in samples (#65)
* Remove trailing comma and regenerate plot Co-authored-by: Ilya Muradyan <ilya.muradyan@jetbrains.com>
1 parent 83ab5ea commit 5e6d590

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

samples/LetsPlot.ipynb

+16-20
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"data": {
1212
"text/html": [
13-
" <div id=\"Vv7uvh\"></div>\n",
13+
" <div id=\"bJuM8r\"></div>\n",
1414
" <script type=\"text/javascript\">\n",
1515
" if(!window.letsPlotCallQueue) {\n",
1616
" window.letsPlotCallQueue = [];\n",
@@ -35,9 +35,9 @@
3535
" var div = document.createElement(\"div\");\n",
3636
" div.style.color = 'darkred';\n",
3737
" div.textContent = 'Error loading Lets-Plot JS';\n",
38-
" document.getElementById(\"Vv7uvh\").appendChild(div);\n",
38+
" document.getElementById(\"bJuM8r\").appendChild(div);\n",
3939
" };\n",
40-
" var e = document.getElementById(\"Vv7uvh\");\n",
40+
" var e = document.getElementById(\"bJuM8r\");\n",
4141
" e.appendChild(script);\n",
4242
" })();\n",
4343
" </script>"
@@ -68,18 +68,10 @@
6868
"execution_count": 3,
6969
"metadata": {},
7070
"outputs": [
71-
{
72-
"data": {
73-
"text/plain": []
74-
},
75-
"execution_count": 3,
76-
"metadata": {},
77-
"output_type": "execute_result"
78-
},
7971
{
8072
"data": {
8173
"text/html": [
82-
" <div id=\"NeS9rD\"></div>\n",
74+
" <div id=\"xPJT0p\"></div>\n",
8375
" <script type=\"text/javascript\">\n",
8476
" (function() {\n",
8577
" var plotSpec={\n",
@@ -104,21 +96,22 @@
10496
"'geom':\"bar\"\n",
10597
"}]\n",
10698
"};\n",
107-
" var plotContainer = document.getElementById(\"NeS9rD\");\n",
99+
" var plotContainer = document.getElementById(\"xPJT0p\");\n",
108100
" window.letsPlotCall(function() {{\n",
109101
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
110102
" }});\n",
111103
" })(); \n",
112104
" </script>"
113105
]
114106
},
107+
"execution_count": 3,
115108
"metadata": {},
116-
"output_type": "display_data"
109+
"output_type": "execute_result"
117110
}
118111
],
119112
"source": [
120113
"val layer = geom_bar { \n",
121-
" x = \"cat1\", \n",
114+
" x = \"cat1\"\n",
122115
" fill = \"cat2\"\n",
123116
"}\n",
124117
"\n",
@@ -141,19 +134,22 @@
141134
},
142135
"language_info": {
143136
"codemirror_mode": "text/x-kotlin",
144-
"file_extension": "kt",
145-
"name": "kotlin"
137+
"file_extension": ".kt",
138+
"mimetype": "text/x-kotlin",
139+
"name": "kotlin",
140+
"pygments_lexer": "kotlin",
141+
"version": "1.4.0-dev-7568"
146142
},
147143
"pycharm": {
148144
"stem_cell": {
149145
"cell_type": "raw",
150-
"source": [],
151146
"metadata": {
152147
"collapsed": false
153-
}
148+
},
149+
"source": []
154150
}
155151
}
156152
},
157153
"nbformat": 4,
158154
"nbformat_minor": 4
159-
}
155+
}

0 commit comments

Comments
 (0)