Are URL parameters supported in a Bokeh Web App?

Turribeach
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,165 Neuron

Are URL parameters supported in a Bokeh Web App? For instance can we retrieve URL parameters accessing the HTTP Request as shown in the Bokeh documentation? The purpose of this is to pass some URL parameter to our Dataiku Public Web App so we can customise what the Bokeh visualisation shows based on the URL parameters. Thanks

Answers

  • ATsao
    ATsao Dataiker Alumni, Registered Posts: 139 ✭✭✭✭✭✭✭✭

    Hi Turribeach,

    Yes, you should be able to utilize URL parameters with your public Bokeh webapps and pass them via curdoc().session_context.request.arguments as long as the Bokeh version supports it (should be available starting in Bokeh v0.13 from going through their documentation). Notably, the DSS nginx will simply redirect the request to the underlying Bokeh server but should not change either the corresponding HTTP headers or query strings.

    Thanks,

    Andrew

Setup Info
    Tags
      Help me…