Bokeh with Bottle

I’m getting ready to start a new project and I am considering using Bokeh for some interactive plotting functions I want to implement. I’m on the fence between Flask and Bottle and I see Flask listed under the dependancies for Bokeh. I’m just getting into the web frameworks and was going o try both Flask and Bottle as they seem rather simple to learn. Right now this will be a early intranet application that may expand to something more so i want to get to know these guys before committing to one or the other. My first impressions are that Flask is more widely used while Bottle seems to perform better in many of the benchmarks I’ve seen so I guess my question for this group is

Can I use Bottle with Bokeh? Are there any known issues or would it be better to go with Flask since obviously this project has seen fit to go with it?

I’m looking at using Rocket or possibly gevent as the server (outside shot possibly cherrypy) and Bottle just seems to make that simpler (not that Flask is that much more complicated).

Thanks,

Mike

Hi Mike,

If the plots you want to create have static data (i.e., not streaming or updating) then it does not really make any difference. Bokeh can generate static output that still has interactive tools (pan, zoom, linked selections, resize, etc.) that you can template into the documents you serve in whatever way you like.

If you plan to have active plots, with streaming or updating data, then you will need to use the Bokeh server, which is a flask app. It is also a Flask blueprint, and so in principal the Bokeh server be integrated directly into another Flask app, but there is not yet much documentation or collected experience with this configuration.

Bryan

···

On Nov 29, 2014, at 11:53 PM, Michael Tallhamer <[email protected]> wrote:

I'm getting ready to start a new project and I am considering using Bokeh for some interactive plotting functions I want to implement. I'm on the fence between Flask and Bottle and I see Flask listed under the dependancies for Bokeh. I'm just getting into the web frameworks and was going o try both Flask and Bottle as they seem rather simple to learn. Right now this will be a early intranet application that may expand to something more so i want to get to know these guys before committing to one or the other. My first impressions are that Flask is more widely used while Bottle seems to perform better in many of the benchmarks I've seen so I guess my question for this group is

Can I use Bottle with Bokeh? Are there any known issues or would it be better to go with Flask since obviously this project has seen fit to go with it?

I'm looking at using Rocket or possibly gevent as the server (outside shot possibly cherrypy) and Bottle just seems to make that simpler (not that Flask is that much more complicated).

Thanks,
Mike

--
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/3fe1d3ba-ad6f-4ebe-b6fa-d567fd986e14%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.