The Python Equations
package can automatically generate source code in several computing languages. We're going to add this output to our site, so we don't have to redo work that was already done.
Add this to the bottom of results.mako, just before the final <PRE> tag:
1
2
3
4
5
6
7
8
9 | <code>
## uncomment your choice of computing languages here...
##${c.equation.CodeJAVA()}
##${c.equation.CodeCPP()}
${c.equation.CodePYTHON()}
##${c.equation.CodeCS()}
##${c.equation.CodeSCILAB()}
##${c.equation.CodeMATLAB()}
</code>
|
and again try http://127.0.0.1:5000/
- you should now have automatically generated Python source code.
Next: --> Adding 3D surface fitting