j1-template 2022.3.2 → 2022.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/themes/j1/adapter/js/j1.js +150 -75
- data/assets/themes/j1/adapter/js/nbinteract.js +18 -7
- data/assets/themes/j1/adapter/js/rangeSlider.js +27 -10
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.js +1 -1
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.js.map +1 -1
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.min.js +1 -1
- data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.css +5 -0
- data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.min.css +1 -1
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/j1_config.yml +22 -7
- data/lib/starter_web/_data/modules/defaults/nbinteract.yml +8 -0
- data/lib/starter_web/_data/modules/rangeSlider.yml +38 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/range-slider-block.rb +44 -0
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_odes_in_python.ipynb +16 -16
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +919 -919
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_odes_in_python.html +10 -10
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/nbi_docs_recipes_graphing.html +473 -473
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +2 -2
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +3 -7
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/_new/nbinteract-core.js +0 -94
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/_new/nbinteract-core.js.map +0 -1
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/_old/j1-nbinteract-core.js +0 -94
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/_old/j1-nbinteract-core.js.map +0 -1
- data/lib/starter_web/pages/public/se/se-fake.adoc +0 -47
@@ -98,7 +98,7 @@ $$<p>First, we defined a function called main for easier use of interact which w
|
|
98
98
|
</div>
|
99
99
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
100
100
|
<div class="text_cell_render border-box-sizing rendered_html">
|
101
|
-
<h3 id="Equation
|
101
|
+
<h3 id="Equation---Home-Economy">Equation - Home Economy<a class="anchor-link" href="#Equation---Home-Economy">¶</a></h3>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
</div>
|
@@ -176,7 +176,7 @@ $$<p>First, we defined a function called main for easier use of interact which w
|
|
176
176
|
</div>
|
177
177
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
178
178
|
<div class="text_cell_render border-box-sizing rendered_html">
|
179
|
-
<h3 id="Evaluation
|
179
|
+
<h3 id="Evaluation---Home-Economy">Evaluation - Home Economy<a class="anchor-link" href="#Evaluation---Home-Economy">¶</a></h3><p>Finally, the code for the interaction, here the <em>interact</em> function from <em>ipywidgets</em> is used. A separate slider is used for each parameter with the default parameters set for a nice default visualization, with a description and the style and layout is used from the initialization cells.</p>
|
180
180
|
|
181
181
|
</div>
|
182
182
|
</div>
|
@@ -268,7 +268,7 @@ $$
|
|
268
268
|
</div>
|
269
269
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
270
270
|
<div class="text_cell_render border-box-sizing rendered_html">
|
271
|
-
<h3 id="Equation
|
271
|
+
<h3 id="Equation---Homes-and-ACs">Equation - Homes and ACs<a class="anchor-link" href="#Equation---Homes-and-ACs">¶</a></h3>
|
272
272
|
</div>
|
273
273
|
</div>
|
274
274
|
</div>
|
@@ -343,7 +343,7 @@ $$
|
|
343
343
|
</div>
|
344
344
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
345
345
|
<div class="text_cell_render border-box-sizing rendered_html">
|
346
|
-
<h3 id="Evaluation
|
346
|
+
<h3 id="Evaluation---Homes-and-ACs">Evaluation - Homes and ACs<a class="anchor-link" href="#Evaluation---Homes-and-ACs">¶</a></h3>
|
347
347
|
</div>
|
348
348
|
</div>
|
349
349
|
</div>
|
@@ -439,7 +439,7 @@ $$<p>This time the code is only changed in the variables names and the equations
|
|
439
439
|
</div>
|
440
440
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
441
441
|
<div class="text_cell_render border-box-sizing rendered_html">
|
442
|
-
<h3 id="Equation
|
442
|
+
<h3 id="Equation---Stock-Control">Equation - Stock Control<a class="anchor-link" href="#Equation---Stock-Control">¶</a></h3>
|
443
443
|
</div>
|
444
444
|
</div>
|
445
445
|
</div>
|
@@ -511,7 +511,7 @@ $$<p>This time the code is only changed in the variables names and the equations
|
|
511
511
|
</div>
|
512
512
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
513
513
|
<div class="text_cell_render border-box-sizing rendered_html">
|
514
|
-
<h3 id="Evaluation
|
514
|
+
<h3 id="Evaluation---Stock-Control">Evaluation - Stock Control<a class="anchor-link" href="#Evaluation---Stock-Control">¶</a></h3>
|
515
515
|
</div>
|
516
516
|
</div>
|
517
517
|
</div>
|
@@ -601,7 +601,7 @@ $$
|
|
601
601
|
</div>
|
602
602
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
603
603
|
<div class="text_cell_render border-box-sizing rendered_html">
|
604
|
-
<h3 id="Equation
|
604
|
+
<h3 id="Equation---Useful-life">Equation - Useful life<a class="anchor-link" href="#Equation---Useful-life">¶</a></h3>
|
605
605
|
</div>
|
606
606
|
</div>
|
607
607
|
</div>
|
@@ -705,7 +705,7 @@ after the iterations</li>
|
|
705
705
|
</div>
|
706
706
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
707
707
|
<div class="text_cell_render border-box-sizing rendered_html">
|
708
|
-
<h3 id="Evaluation
|
708
|
+
<h3 id="Evaluation---Useful-life">Evaluation - Useful life<a class="anchor-link" href="#Evaluation---Useful-life">¶</a></h3>
|
709
709
|
</div>
|
710
710
|
</div>
|
711
711
|
</div>
|
@@ -814,7 +814,7 @@ two species interact, one as a predator and the other as prey.</p>
|
|
814
814
|
</div>
|
815
815
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
816
816
|
<div class="text_cell_render border-box-sizing rendered_html">
|
817
|
-
<h3 id="Equation
|
817
|
+
<h3 id="Equation---Foxes-and-Rabbits">Equation - Foxes and Rabbits<a class="anchor-link" href="#Equation---Foxes-and-Rabbits">¶</a></h3>
|
818
818
|
</div>
|
819
819
|
</div>
|
820
820
|
</div>
|
@@ -895,7 +895,7 @@ two species interact, one as a predator and the other as prey.</p>
|
|
895
895
|
</div>
|
896
896
|
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
|
897
897
|
<div class="text_cell_render border-box-sizing rendered_html">
|
898
|
-
<h3 id="Evaluation
|
898
|
+
<h3 id="Evaluation---Foxes-and-Rabbits">Evaluation - Foxes and Rabbits<a class="anchor-link" href="#Evaluation---Foxes-and-Rabbits">¶</a></h3>
|
899
899
|
</div>
|
900
900
|
</div>
|
901
901
|
</div>
|