This week we wrote a simple piece of code in Python using the SymPy interface to generate "random" (within an integer range) polynomials and check the roots of the polynomial entered by the user.
The code works great in Terminal, but now we need to actually access it in a web form in order to take user input from a webpage. To do this, we first had to enable Python in apache (we used these instructions).
Next, we need to be able to use our Python code in an HTML form. We found this tutorial on how to embed Python in HTML using Jinja to accomplish this goal, but we'll see how intuitive it is.
We also want to incorporate MathJax into our program to display the polynomials (and any other functions we might want to add to our app functionality in the future) more elegantly.
Goals for next week:
- Ensure Python is enabled in apache
- Work through Jinja tutorial