HTTP request arguments in embedded Bokeh server

Hi!

I have a flask application that embeds a Bokeh server. I want to make use of HTTP request arguments in my Bokeh applications, like this pull request allows for.

My problem is that I am having trouble figuring out how I can pass my request parameters using pull_session() and autoload_server().

These two methods already add a query string to the URL. For instance, autoload_server adds ´/autoload.js?bokeh-autoload-element=…&bokeh-session-id=…´ to the end of the URL.

Lets say I want to add the query string ?N=10 and have my Bokeh application use this value for N. Is there any way that I could do this using the bokeh server?

Hi Annie,

This is a reasonable ask, but it will require some new development. Can you make a feature request issue on GH to discuss it (and so that it does not get lost):

  https://github.com/bokeh/bokeh/issues

In the mean time, I'm afraid your best option is to dig into the Bokeh source (as you seem to have already done) and make your own versions of those functions that add the parameters you want to the URLs that they construct.

Thanks,

Bryan

···

On Feb 22, 2017, at 13:08, Annie <[email protected]> wrote:

Hi!

I have a flask application that embeds a Bokeh server. I want to make use of HTTP request arguments in my Bokeh applications, like this pull request allows for.
My problem is that I am having trouble figuring out how I can pass my request parameters using pull_session() and autoload_server().
These two methods already add a query string to the URL. For instance, autoload_server adds ´/autoload.js?bokeh-autoload-element=...&bokeh-session-id=...´ to the end of the URL.

Lets say I want to add the query string `?N=10` and have my Bokeh application use this value for N. Is there any way that I could do this using the bokeh server?

--
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/daa49e45-138c-4a54-83fc-7107550d1940%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Ok, thanks!
I have added an issue here.

Annie

···

On Saturday, March 11, 2017 at 7:31:45 PM UTC+1, Bryan Van de ven wrote:

Hi Annie,

This is a reasonable ask, but it will require some new development. Can you make a feature request issue on GH to discuss it (and so that it does not get lost):

    [https://github.com/bokeh/bokeh/issues](https://github.com/bokeh/bokeh/issues)

In the mean time, I’m afraid your best option is to dig into the Bokeh source (as you seem to have already done) and make your own versions of those functions that add the parameters you want to the URLs that they construct.

Thanks,

Bryan

On Feb 22, 2017, at 13:08, Annie [email protected] wrote:

Hi!

I have a flask application that embeds a Bokeh server. I want to make use of HTTP request arguments in my Bokeh applications, like this pull request allows for.

My problem is that I am having trouble figuring out how I can pass my request parameters using pull_session() and autoload_server().

These two methods already add a query string to the URL. For instance, autoload_server adds ´/autoload.js?bokeh-autoload-element=…&bokeh-session-id=…´ to the end of the URL.

Lets say I want to add the query string ?N=10 and have my Bokeh application use this value for N. Is there any way that I could do this using the bokeh server?


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/daa49e45-138c-4a54-83fc-7107550d1940%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.