Guidelines for minimal Web App to direct Bokeh

Hi all,

for my work, I’m trying to make a small web app that will show some default plots (pre-made), but allow users to define custom parameters (station name, filter ID, start and end date of the analysis), process the data and plot the request.

I was wondering which direction to take ? How to pass events/request/parameters between the webpage and some service on the server side ?

Thanks a lot !

Tom

How are you trying to serve up the requests? Django, flask, other?

I would run some serverside templating code that calls create_html_snippet for each template. look at URL dispatcher | Django documentation | Django

The more advanced way to do this is with client side url routing. Here is information about how to do that with the backbone.js framework . http://mrbool.com/backbone-js-router/28001

The problem with clientside url routing (which means that the user doesn't have to reload the page) is that now JS instead of python on the serverside is controlling the workflow. This is more interactive, but a bit trickier. It requires more understanding of js and frontend development. We will be making improvements to bokeh that let more of the bokeh-server be driven from JS. Right now, we aren't quite there. I am currently working on a similar project.

Paddy

···

On 2/16/14, 5:19 AM, Thomas Lecocq wrote:

Hi all,

for my work, I'm trying to make a small web app that will show some default plots (pre-made), but allow users to define custom parameters (station name, filter ID, start and end date of the analysis), process the data and plot the request.

I was wondering which direction to take ? How to pass events/request/parameters between the webpage and some service on the server side ?

Thanks a lot !

Tom
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/1437646f-0e88-4b48-9b9b-9ef77a1abf39%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/groups/opt_out\.