Thanks for the link. It seems copy to clipboard in Spaces is not trivial. There is a workaround as mentioned at Feature-Policy: clipboard-read and clipboard-write · Issue #322 · w3c/webappsec-permissions-policy · GitHub but it work only if we have the control over the parent window and the parent window is not inside an iframe again. Unfortunately the main window of the streamlit app in Spaces is again inside an iframe, so the workaround doesn’t work.