最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Web2py Use Form Input to run Notebook in website - Stack Overflow

programmeradmin5浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论