Skip to content

Commit

Permalink
Rerun some cookbooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ASmirnov-HORIS committed Aug 13, 2024
1 parent d37038f commit cec18bf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{
"data": {
"text/html": [
" <div id=\"HgwJ6h\"></div>\n",
" <div id=\"sO8TC9\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
" if(!window.letsPlotCallQueue) {\n",
" window.letsPlotCallQueue = [];\n",
Expand All @@ -34,7 +34,7 @@
" (function() {\n",
" var script = document.createElement(\"script\");\n",
" script.type = \"text/javascript\";\n",
" script.src = \"http://127.0.0.1:8080/js-package/build/dist/js/developmentExecutable/js-package.js\";\n",
" script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/[email protected]/js-package/distr/lets-plot.min.js\";\n",
" script.onload = function() {\n",
" window.letsPlotCall = function(f) {f();};\n",
" window.letsPlotCallQueue.forEach(function(f) {f();});\n",
Expand All @@ -48,9 +48,9 @@
" var div = document.createElement(\"div\");\n",
" div.style.color = 'darkred';\n",
" div.textContent = 'Error loading Lets-Plot JS';\n",
" document.getElementById(\"HgwJ6h\").appendChild(div);\n",
" document.getElementById(\"sO8TC9\").appendChild(div);\n",
" };\n",
" var e = document.getElementById(\"HgwJ6h\");\n",
" var e = document.getElementById(\"sO8TC9\");\n",
" e.appendChild(script);\n",
" })();\n",
" </script>"
Expand Down Expand Up @@ -269,9 +269,8 @@
}
],
"source": [
"//%useLatestDescriptors\n",
"//%use lets-plot\n",
"%use @/home/ikupriyanov/Projects/lets-plot-kotlin/lets-plot-dev.json\n",
"%useLatestDescriptors\n",
"%use lets-plot\n",
"%use dataframe"
]
},
Expand All @@ -284,7 +283,7 @@
{
"data": {
"text/plain": [
"Lets-Plot Kotlin API v.0.0.0-SNAPSHOT. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.0.0.0-SNAPSHOT."
"Lets-Plot Kotlin API v.0.0.0-SNAPSHOT. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.4.4.0."
]
},
"execution_count": 2,
Expand Down Expand Up @@ -333,7 +332,7 @@
{
"data": {
"text/html": [
" <div id=\"SUSl28\"></div>\n",
" <div id=\"dNWTeQ\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -389,7 +388,7 @@
"}]\n",
"}\n",
"};\n",
" var plotContainer = document.getElementById(\"SUSl28\");\n",
" var plotContainer = document.getElementById(\"dNWTeQ\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down Expand Up @@ -423,7 +422,7 @@
{
"data": {
"text/html": [
" <div id=\"pCRRDV\"></div>\n",
" <div id=\"DNef5C\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -480,7 +479,7 @@
"}]\n",
"}\n",
"};\n",
" var plotContainer = document.getElementById(\"pCRRDV\");\n",
" var plotContainer = document.getElementById(\"DNef5C\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down
13 changes: 7 additions & 6 deletions docs/examples/jupyter-notebooks/f-4.7.4/us_unemployment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"data": {
"text/html": [
" <div id=\"sXOF9F\"></div>\n",
" <div id=\"iqJpLm\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
" if(!window.letsPlotCallQueue) {\n",
" window.letsPlotCallQueue = [];\n",
Expand All @@ -42,9 +42,9 @@
" var div = document.createElement(\"div\");\n",
" div.style.color = 'darkred';\n",
" div.textContent = 'Error loading Lets-Plot JS';\n",
" document.getElementById(\"sXOF9F\").appendChild(div);\n",
" document.getElementById(\"iqJpLm\").appendChild(div);\n",
" };\n",
" var e = document.getElementById(\"sXOF9F\");\n",
" var e = document.getElementById(\"iqJpLm\");\n",
" e.appendChild(script);\n",
" })();\n",
" </script>"
Expand Down Expand Up @@ -264,6 +264,7 @@
],
"source": [
"%useLatestDescriptors\n",
"%use lets-plot\n",
"%use dataframe"
]
},
Expand Down Expand Up @@ -324,7 +325,7 @@
{
"data": {
"text/html": [
" <div id=\"DiVqIR\"></div>\n",
" <div id=\"kuqCei\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -399,8 +400,8 @@
"\"stat\":\"identity\",\n",
"\"vjust\":1.0,\n",
"\"data\":{\n",
"\"name\":[\"Eisenhower\",\"Kennedy\",\"Johnson\",\"Nixon\",\"Ford\",\"Carter\",\"Reagan\",\"Bush\",\"Clinton\",\"Bush\",\"Obama\",\"Trump\"],\n",
"\"start\":[-5.348196E11,-2.823588E11,-1.928484E11,-2.9898E10,1.452348E11,2.225628E11,3.487932E11,6.01254E11,7.274844E11,9.799452E11,1.232406E12,1.4848668E12],\n",
"\"name\":[\"Eisenhower\",\"Kennedy\",\"Johnson\",\"Nixon\",\"Ford\",\"Carter\",\"Reagan\",\"Bush\",\"Clinton\",\"Bush\",\"Obama\",\"Trump\"],\n",
"\"party\":[\"Republican\",\"Democratic\",\"Democratic\",\"Republican\",\"Republican\",\"Democratic\",\"Republican\",\"Republican\",\"Democratic\",\"Republican\",\"Democratic\",\"Republican\"]\n",
"},\n",
"\"alpha\":0.6,\n",
Expand Down Expand Up @@ -470,7 +471,7 @@
"\"legend_position\":\"top\"\n",
"}\n",
"};\n",
" var plotContainer = document.getElementById(\"DiVqIR\");\n",
" var plotContainer = document.getElementById(\"kuqCei\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down
41 changes: 21 additions & 20 deletions docs/examples/jupyter-notebooks/f-4.7.4/waterfall_plot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"data": {
"text/html": [
" <div id=\"jOzmBx\"></div>\n",
" <div id=\"x2SHiA\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
" if(!window.letsPlotCallQueue) {\n",
" window.letsPlotCallQueue = [];\n",
Expand All @@ -46,9 +46,9 @@
" var div = document.createElement(\"div\");\n",
" div.style.color = 'darkred';\n",
" div.textContent = 'Error loading Lets-Plot JS';\n",
" document.getElementById(\"jOzmBx\").appendChild(div);\n",
" document.getElementById(\"x2SHiA\").appendChild(div);\n",
" };\n",
" var e = document.getElementById(\"jOzmBx\");\n",
" var e = document.getElementById(\"x2SHiA\");\n",
" e.appendChild(script);\n",
" })();\n",
" </script>"
Expand All @@ -59,7 +59,8 @@
}
],
"source": [
"%useLatestDescriptors"
"%useLatestDescriptors\n",
"%use lets-plot"
]
},
{
Expand Down Expand Up @@ -92,7 +93,7 @@
{
"data": {
"text/html": [
" <div id=\"Rx2XW5\"></div>\n",
" <div id=\"9XGro8\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -221,7 +222,7 @@
"\"axis_tooltip\":\"blank\"\n",
"}\n",
"};\n",
" var plotContainer = document.getElementById(\"Rx2XW5\");\n",
" var plotContainer = document.getElementById(\"9XGro8\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down Expand Up @@ -255,7 +256,7 @@
{
"data": {
"text/html": [
" <div id=\"6tvd6P\"></div>\n",
" <div id=\"Yy0iUR\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -417,7 +418,7 @@
"}]\n",
"}\n",
"};\n",
" var plotContainer = document.getElementById(\"6tvd6P\");\n",
" var plotContainer = document.getElementById(\"Yy0iUR\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down Expand Up @@ -469,7 +470,7 @@
{
"data": {
"text/html": [
" <div id=\"ZBdAjF\"></div>\n",
" <div id=\"x4EBA8\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -612,7 +613,7 @@
"\"axis_tooltip\":\"blank\"\n",
"}\n",
"};\n",
" var plotContainer = document.getElementById(\"ZBdAjF\");\n",
" var plotContainer = document.getElementById(\"x4EBA8\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down Expand Up @@ -660,7 +661,7 @@
{
"data": {
"text/html": [
" <div id=\"HHh273\"></div>\n",
" <div id=\"jpOIDR\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -930,7 +931,7 @@
"}],\n",
"\"kind\":\"subplots\"\n",
"};\n",
" var plotContainer = document.getElementById(\"HHh273\");\n",
" var plotContainer = document.getElementById(\"jpOIDR\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down Expand Up @@ -970,7 +971,7 @@
{
"data": {
"text/html": [
" <div id=\"FAoVzh\"></div>\n",
" <div id=\"o8n4mH\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -1033,8 +1034,8 @@
"\"..flow_type..\":[\"Increase\",\"Increase\",\"Decrease\",\"Decrease\",\"Total\"],\n",
"\"..dy..\":[830000.0,290000.0,-360000.0,-150000.0,610000.0],\n",
"\"..x..\":[0.0,1.0,2.0,3.0,4.0],\n",
"\"..ymax..\":[830000.0,1120000.0,1120000.0,760000.0,null],\n",
"\"..initial..\":[0.0,830000.0,1120000.0,760000.0,0.0],\n",
"\"..ymax..\":[830000.0,1120000.0,1120000.0,760000.0,null],\n",
"\"..ymin..\":[0.0,830000.0,760000.0,610000.0,null],\n",
"\"..xlabel..\":[\"Product revenue\",\"Services revenue\",\"Fixed costs\",\"Variable costs\",\"Total\"]\n",
"},\n",
Expand Down Expand Up @@ -1173,8 +1174,8 @@
"\"..value..\":[830000.0,1120000.0,760000.0,610000.0,610000.0],\n",
"\"..flow_type..\":[\"Increase\",\"Increase\",\"Decrease\",\"Decrease\",\"Total\"],\n",
"\"..x..\":[0.0,1.0,2.0,3.0,4.0],\n",
"\"..ymax..\":[830000.0,1120000.0,1120000.0,760000.0,null],\n",
"\"..initial..\":[0.0,830000.0,1120000.0,760000.0,0.0],\n",
"\"..ymax..\":[830000.0,1120000.0,1120000.0,760000.0,null],\n",
"\"..ymin..\":[0.0,830000.0,760000.0,610000.0,null],\n",
"\"..xlabel..\":[\"Product revenue\",\"Services revenue\",\"Fixed costs\",\"Variable costs\",\"Total\"]\n",
"},\n",
Expand Down Expand Up @@ -1252,7 +1253,7 @@
"}],\n",
"\"kind\":\"subplots\"\n",
"};\n",
" var plotContainer = document.getElementById(\"FAoVzh\");\n",
" var plotContainer = document.getElementById(\"o8n4mH\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down Expand Up @@ -1296,7 +1297,7 @@
{
"data": {
"text/html": [
" <div id=\"eqdUJX\"></div>\n",
" <div id=\"6eOcZz\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -1425,7 +1426,7 @@
"\"axis_tooltip\":\"blank\"\n",
"}\n",
"};\n",
" var plotContainer = document.getElementById(\"eqdUJX\");\n",
" var plotContainer = document.getElementById(\"6eOcZz\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down Expand Up @@ -1459,7 +1460,7 @@
{
"data": {
"text/html": [
" <div id=\"prQt33\"></div>\n",
" <div id=\"dGainy\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
Expand Down Expand Up @@ -1857,7 +1858,7 @@
"}],\n",
"\"kind\":\"subplots\"\n",
"};\n",
" var plotContainer = document.getElementById(\"prQt33\");\n",
" var plotContainer = document.getElementById(\"dGainy\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
Expand Down

0 comments on commit cec18bf

Please sign in to comment.