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?
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):
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.
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?
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):
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.
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].