-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass HTTP request arguments to autoload_server and pull_session #5992
Comments
I ran into this wall also. My use-case is having flask call
This goes in and manually edits the script tag returned by |
I've looked at the source code for
would be most of the additions. URL-encoding the keys and values would be good too. I would be happy to do the work for this, but I have no experience with contributing to other people's repos on github. If someone could point me to an explanation of the process of making a PR, adding code tests, documentation, etc, I'd love to contribute this to Bokeh! |
Nice moves @kevinsa5 , I see what you're doing, modifying the src url tucked into the script tag's string. I too would like to see the source updated on autoload_server to permit pushing parameters down into the Bokeh documents. Unpacking my simple passed string "?paramName=someParam" went like this...
|
Too late for |
ss: after a merge to master from upstream * 'master' of github.com:bdonkey/bokeh: (134 commits) 'Updating for version 0.12.7dev1' 'Updating for version 0.12.7dev1' Pass HTTP arguments to autoload_server (bokeh#5992) (bokeh#6415) Restore workaround to properly trigger changes in source.data from data_tables (bokeh#6483) Start rewriting bokehjs in TypeScript (bokeh#6482) Bryanv/6467 noarch (bokeh#6469) Canavandl/bokeh png command (bokeh#6471) Embed exclude resource files (bokeh#6363) 'Updating for version 0.12.6' 'Updating for version 0.12.6' 'Updating for version 0.12.6' 'Updating for version 0.12.6' 'Updating for version 0.12.6rc5' 'Updating for version 0.12.6rc5' protect against exceptions when running inline code (bokeh#6449) bump required bkcharts version to 0.2 (bokeh#6445) General 0.12.6 examples and docs tasks (bokeh#6408) update unemployment svg bump canvas2svg version number for image smoothing fix Move js_on_change() connections to connect_signals() (bokeh#6420) ...
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
#4858 makes it possible to pass HTTP requests arguments to app documents. However, the functions
autoload_server
andpull_session
do not allow for sending request parameters, because they 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. If I add the query string?N=10
to the end of myapp_path
, then the URL will result in?N=10/autoload.js?bokeh-autoload-element=...&bokeh-session-id=...
which is not a valid URL.It would be great if there was a way to pass request arguments to these functions so that they automatically add it to the URL in a correct way.
The text was updated successfully, but these errors were encountered: