executable-engineering 0.1.48__py3-none-any.whl → 0.1.51__py3-none-any.whl

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.
@@ -103,6 +103,8 @@ from .numerical_integration_module import (
103
103
  visualize_simpsons_38,
104
104
  )
105
105
 
106
+ from .display_code_module import display_source
107
+
106
108
  __all__ = [
107
109
  "interactive_neural_network",
108
110
  "train_until_convergence",
@@ -206,4 +208,5 @@ __all__ = [
206
208
  "visualize_simpsons_13",
207
209
  "simpsons_38",
208
210
  "visualize_simpsons_38",
211
+ "display_source",
209
212
  ]
@@ -0,0 +1,7 @@
1
+ import inspect
2
+ from IPython.display import Code, display
3
+
4
+ def display_source(func):
5
+ """Dynamically displays the source code of a function."""
6
+ source_code = inspect.getsource(func)
7
+ display(Code(source_code, language='python'))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: executable_engineering
3
- Version: 0.1.48
3
+ Version: 0.1.51
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
@@ -1,8 +1,9 @@
1
- executable_engineering/__init__.py,sha256=sVXDDR7T9ElMVQkDNtbt9PseV8eiLJ650SsJSQRe_qE,5390
1
+ executable_engineering/__init__.py,sha256=fKxp2PmDCU00Fn7hZnrAsXvdOnT3n6CCA3QSbi4LmMk,5459
2
2
  executable_engineering/closedoptimization_module.py,sha256=7J6espVpgjRRwQvx35QXuaaigdX9R-P2wN5JTSpi5fI,14076
3
3
  executable_engineering/closedrootfinder_module.py,sha256=hQ6iWNi16RkZTaE_WPUEwkohmrYrAyU8WWSXO2EPLJY,6000
4
4
  executable_engineering/constrainedoptimization_module.py,sha256=rNqVnwGZdFRgc653dYM9iBy0WOcMtNF5GmtXBHzXV2k,5061
5
5
  executable_engineering/differentiation_module.py,sha256=SNzT7R56h74dgXKvu-Z9i15A0z8-FzeRuTMz8vHEm1k,22490
6
+ executable_engineering/display_code_module.py,sha256=KOeRQwP3O7QuD6kxwzN2HKp2uY2i1pOaI05HkxgXpLo,239
6
7
  executable_engineering/functions_module.py,sha256=rmjHi2Q_KqAmcwFnB01SluLeHwlqDZSEBiYy9Pehdpc,10780
7
8
  executable_engineering/gradientoptimization_module.py,sha256=-2fErE9cemSEPeV9PlWOf4cF7Tr6DjilEw_NxvE-JYw,6601
8
9
  executable_engineering/integration_module.py,sha256=WVEJlSH6vZamt4gaoWYvPczcdIMVRsrVj0rzt7b9cqY,22841
@@ -13,8 +14,8 @@ executable_engineering/numerical_integration_module.py,sha256=nDbhwKpnbQ6Y95uyWw
13
14
  executable_engineering/openoptimization_module.py,sha256=FJCnrgWS5G1Rz07F_5lxXdwBMdk0O7ll8epA-Y4gCvc,13083
14
15
  executable_engineering/openrootfinder_module.py,sha256=R_lPtCQsIGLXV-j_uDpQepImOOgtgA7I6qnhUPwWLLc,5944
15
16
  executable_engineering/optimization_module.py,sha256=GZtLSWY4VaF39HYg29HU3ZdU7yF-q5s2f8QlF6E1Uqw,12097
16
- executable_engineering-0.1.48.dist-info/licenses/LICENSE,sha256=Tg4nrt8rFhgpkPbIA8SWoCR3MlGLw0NufB8AE6-TH_o,1074
17
- executable_engineering-0.1.48.dist-info/METADATA,sha256=SysshqYoEzbmQL_y1niHr5iceJtkBIqg-s38_qdxEEU,1648
18
- executable_engineering-0.1.48.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
19
- executable_engineering-0.1.48.dist-info/top_level.txt,sha256=0U5ATV5WGTLvN9rRSjQ54TyL-ztTyXaN3FzZ_QMq4HM,23
20
- executable_engineering-0.1.48.dist-info/RECORD,,
17
+ executable_engineering-0.1.51.dist-info/licenses/LICENSE,sha256=Tg4nrt8rFhgpkPbIA8SWoCR3MlGLw0NufB8AE6-TH_o,1074
18
+ executable_engineering-0.1.51.dist-info/METADATA,sha256=h5FWmiSJ7nv3EfjtYRf9ISmNAIqnd31mgCIijGlnLz8,1648
19
+ executable_engineering-0.1.51.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
20
+ executable_engineering-0.1.51.dist-info/top_level.txt,sha256=0U5ATV5WGTLvN9rRSjQ54TyL-ztTyXaN3FzZ_QMq4HM,23
21
+ executable_engineering-0.1.51.dist-info/RECORD,,