PylonsHQ.

Layout: Fixed-width

Adding source code output

Skip to end of metadata
Go to start of metadata

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

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Powered by Pylons - Contact Administrators