executable-engineering 0.1.39__tar.gz → 0.1.40__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/PKG-INFO +1 -1
  2. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/closedrootfinder_module.py +26 -18
  3. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering.egg-info/PKG-INFO +1 -1
  4. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/setup.py +1 -1
  5. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/LICENSE +0 -0
  6. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/README.md +0 -0
  7. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/__init__.py +0 -0
  8. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/closedoptimization_module.py +0 -0
  9. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/gradientoptimization_module.py +0 -0
  10. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/linearsystems_module.py +0 -0
  11. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/neuralnet_module.py +0 -0
  12. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/numerical_error_module.py +0 -0
  13. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/openoptimization_module.py +0 -0
  14. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering/openrootfinder_module.py +0 -0
  15. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering.egg-info/SOURCES.txt +0 -0
  16. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering.egg-info/dependency_links.txt +0 -0
  17. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering.egg-info/requires.txt +0 -0
  18. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/executable_engineering.egg-info/top_level.txt +0 -0
  19. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/pyproject.toml +0 -0
  20. {executable_engineering-0.1.39 → executable_engineering-0.1.40}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: executable_engineering
3
- Version: 0.1.39
3
+ Version: 0.1.40
4
4
  Summary: Demonstrative tools for the Executable Engineering textbook
5
5
  Home-page: https://github.com/themintlab/ExecutableEngineering/tree/main/executable_engineering
6
6
  Author: Michael Welland
@@ -134,22 +134,30 @@ class RootFinderClosed:
134
134
  )
135
135
  plt.close(fig)
136
136
  return HTML(anim.to_jshtml())
137
-
137
+
138
138
  def show_toggle_closed(self, interval_ms=750):
139
- bisect_anim_html = self._make_animation_closed('Bisection', interval_ms)
140
- falsepos_anim_html = self._make_animation_closed('False Position', interval_ms)
141
-
142
- if bisect_anim_html is None or falsepos_anim_html is None:
143
- print("Cannot create animations. Check initial interval [a, b].")
144
- return
145
-
146
- bisect_content = widgets.HTML(value=bisect_anim_html.data)
147
- falsepos_content = widgets.HTML(value=falsepos_anim_html.data)
148
-
149
- tab_container = widgets.Tab()
150
- tab_container.children = [bisect_content, falsepos_content]
151
-
152
- tab_container.set_title(0, 'Bisection')
153
- tab_container.set_title(1, 'False Position')
154
-
155
- display(tab_container)
139
+ bisect_anim_html = self._make_animation_closed('Bisection', interval_ms)
140
+ falsepos_anim_html = self._make_animation_closed('False Position', interval_ms)
141
+
142
+ if bisect_anim_html is None or falsepos_anim_html is None:
143
+ print("Cannot create animations. Check initial interval [a, b].")
144
+ return
145
+
146
+ # Create Output widgets to capture rich HTML and script execution
147
+ bisect_out = widgets.Output()
148
+ falsepos_out = widgets.Output()
149
+
150
+ with bisect_out:
151
+ display(bisect_anim_html)
152
+
153
+ with falsepos_out:
154
+ display(falsepos_anim_html)
155
+
156
+ # Assign Output widgets as the tab children
157
+ tab_container = widgets.Tab()
158
+ tab_container.children = [bisect_out, falsepos_out]
159
+
160
+ tab_container.set_title(0, 'Bisection')
161
+ tab_container.set_title(1, 'False Position')
162
+
163
+ display(tab_container)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: executable_engineering
3
- Version: 0.1.39
3
+ Version: 0.1.40
4
4
  Summary: Demonstrative tools for the Executable Engineering textbook
5
5
  Home-page: https://github.com/themintlab/ExecutableEngineering/tree/main/executable_engineering
6
6
  Author: Michael Welland
@@ -6,7 +6,7 @@ long_description = (this_directory / "README.md").read_text(encoding="utf-8")
6
6
 
7
7
  setup(
8
8
  name="executable_engineering",
9
- version="0.1.39",
9
+ version="0.1.40",
10
10
  description="Demonstrative tools for the Executable Engineering textbook",
11
11
  long_description=long_description,
12
12
  long_description_content_type="text/markdown",