Dear Ben,
I had the same problem and after some searching I found the following Github issue with a possible solution:
py-shiny/issues/323
I think the problem they are trying to solve is a bit more complicated, but a reply from @cpsievert states the following:
We don't officially expose clientData in the same public way yet, but FWIW, you can still access the same info today like this:
from urllib.parse import urlparse
from shiny import *
app_ui = ui.page_fluid(
ui.output_text_verbatim("out"),
)
def server(input, output, session)
@output()
@render.text
def out():
search = session.input[".clientdata_url_search"]()
return urlparse(search)
app = App(app_ui, server)
This code helped me and I hope it helps you with your problem.
Happy coding,
Michel