Is there any way of stopping users from easily copying and pasting cells from the new version of st.dataframe? I’m aware it’s impossible to truly prevent this, it just needs to be more difficult than it currently is.
In Streamlit 1.9.2 I was able to accomplish this by disabling selection with CSS like so:
disable_df_selection_css = """
<style>
div[role="grid"] div {user-select: none;}
</style>
"""
markdown(disable_df_selection_css, unsafe_allow_html=True)
This no longer works with the new st.dataframe, even after some trial and error with different CSS selectors. My assumption at this point is that glide-data-grid doesn’t respect user-select, so I’m not sure if this is still possible. Is there any way of disabling just copying, if not selection?