444B / streamlit-analytics2

👀 Track & visualize user interactions with your streamlit app
MIT License
14 stars 2 forks source link

Add support for sliders / tuples in widget interactions #37

Closed 444B closed 4 months ago

444B commented 4 months ago

Original issue by eschares on 2021-04-25 19:15:46+00:00

Almost all my widets are setup as double-sided sliders, which return a tuple of values. This produces an error in the widget interactions section of the report as tuples are not supported.

slider

I don't know what it would take to enable this, but I would like to have that functionality available to me.

444B commented 4 months ago

Comment by rustyBilges on 2021-12-28 11:41:54+00:00

I have run into the same problem and agree that this functionality would be great to have. I will have a think about how it could be done.

444B commented 4 months ago

Comment by jrieke on 2021-12-29 02:20:40+00:00

Hey, thx for reporting and sorry for the long delay!

Just added a fix for this, tuple values now get converted to strings ((0, 100) -> "0 - 100"). Hope this works and doesn't cause other problems. It's on PyPI as version 0.3.1 :)