I will probably try, but not soon... I am really currious to know how it works and can provide that kind of feature, maybe it is similar to Brython (http://www.brython.info/)...
Richard On Mon, Jan 26, 2015 at 10:58 AM, Eric <eric.sh...@gmail.com> wrote: > Richard, > > If you try Bokeh and/or mpld3 please tell me how it went. I'll need > scientific plots in my application and would welcome any hints on how to > accomplish this in Web2py. > > Eric > > On Monday, January 26, 2015 at 9:30:48 AM UTC-6, Richard wrote: >> >> Didn't know bokeh thanks! >> >> Richard >> >> On Sun, Jan 25, 2015 at 10:43 PM, Kiran Subbaraman <subbaram...@gmail.com >> > wrote: >> >>> Eric, >>> The best option then is for you to try out the "hello-world" example in >>> web2py. This will give you a good idea as to how to create a minimal web >>> application, and also insert your code. You need to start here: >>> http://web2py.com/books/default/chapter/29/03/overview#Say-hello >>> The stuff you are talking about should be pretty straight-forward in >>> web2py (or any other equivalent web framework). >>> You need to create a model file (to store stuff in the db), a controller >>> (where your plotting logic, like that of Bokeh / MPLD3, will reside), and >>> the view (the html where you render your charts, or even embed javascript >>> based plotting libraries - like d3js). >>> Feel free to ask questions as you work your way through the initial >>> web2py programming model. >>> >>> ________________________________________ >>> Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ >>> >>> On Mon, 26-01-2015 3:22 AM, Eric wrote: >>> >>> Kiran, >>> >>> Thanks for the response. I'm extremely new to any sort of web >>> programming. I have a bit of Python experience. Unfortunately the response >>> above was simply above my head. I've written file parsers in Python so I >>> can handle that. I'm confident I can write the algorithms too. What I can't >>> figure out is how to integrate a plotting utility like Bokeh or possibly >>> MPLD3 (http://mpld3.github.io/index.html) into Web2py and get the plot >>> to show up in a Web2py created page. I've seen a few examples of how to >>> trigger a browser's file dialog, but don't know how to use that to get a >>> file into the Python parsing script. I'm usually pretty good at finding >>> resources on the web, but my general knowledge of web technologies is a >>> problem. >>> >>> Eric >>> >>> On Sunday, January 25, 2015 at 3:24:18 AM UTC-6, Kiran Subbaraman wrote: >>>> >>>> I would use web2py for these requirements, because you get the >>>> authentication/authorization, sessions, DAL (for db access) capabilities >>>> out of the box. >>>> You probably need packages in addition to pydal (for DAL support), on >>>> top of Flask to accomplish this. Look at the gluino example to see what I >>>> mean: https://github.com/mdipierro/gluino >>>> >>>> ________________________________________ >>>> Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ >>>> >>>> On Sat, 24-01-2015 9:53 PM, Eric wrote: >>>> >>>> Hi all, >>>> >>>> I'm new to web2py and have been working my way through the learning >>>> materials. I have a specific application and am wondering if web2py is a >>>> good choice for a framework or something simpler such as Flask. >>>> Specifically I want to create a web application (for an intranet) where a >>>> user would upload a data file using the standard browser file dialog, have >>>> it analyzed by an algorithm I've written in Python and then responses >>>> plotted on the page and also a file of results savable using the browsers >>>> standard save file dialog. I know enough Python to handle the file parsing, >>>> data analysis and result file generation. I'll need access to Python >>>> libraries such as Numpy. I've discovered Bokah (http://bokeh.pydata.org) >>>> as an attractive plotting library. They use Flask in their tutorial. I >>>> haven't found anything particularly clear about how to invoke the browser >>>> file dialogs. Eventually I'd like to use a database to archive the uploaded >>>> data files and resulting result files along with other information such as >>>> user, date, instrument serial number, etc. >>>> >>>> Thanks, >>>> >>>> Eric >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to web2py+un...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>>> >>>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+un...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+un...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.