Reputation: 1
I'm completely new to website development and am trying to use python anywhere to create a website using web2py that is simply a form with 3 inputs (first name, last name, stadium) and then uses those inputs to run a jupyter notebook, or just a python script, that uses the pybaseball package to generate a spraychart and display the result.
I've gotten the web form createad with fields and a dropdown list of stadiums using sqlform, but I can't figure out what I need to use to get the form inputs into a python script, and then how I would display the result (I think from matplotlib) on the website.
Any pointers on what to read up on or what I need to use would be appreciated.
I tried putting the script in the default.py controller, but I'm not sure if that's doing anything or how to get the variables from the form into the script there.
Thanks, Ethan
Upvotes: 0
Views: 19