I have developed a Bokeh app, hosted on Heroku. The app is viewable here:
The plots can really only be viewed on a desktop screen, and do not render well on a mobile device.
I am currently developing a much simpler style of the plots for mobile view, which will look something like this (still under development):
I am currently controlling the style of the plots using the arguments available with
args = curdoc().session_context.request.arguments.
However, it would be great to access the user agent string, detect whether or not the user is on a mobile device, and then define my style parameters accordingly.
The docs for Accessing the HTTP Request make it look like this is not possible.
Has this changed, or is there any way to implement this??
Any advice on how to best access the user agent string would be much appreciated.