Hi
It’s working in local page but while develping the app, import clipboard or pyperclip doesn’t work with the error like this
how to fix?
Hi
It’s working in local page but while develping the app, import clipboard or pyperclip doesn’t work with the error like this
how to fix?
I’ve solved the import issue.
That’s because it requires requirements.text in the same repository.
But, still struggling pyperclip doesn’t work now in window
It might not be streamlit issue.
If you plan to run your app on streamlit cloud or any other server, pyperclip
will not work.
Hi Franky, do you know why pyperclip
doesn’t work on Streamlit when the app is run.
When the app is run in a remote server. This is because pyperclip
can access only the clipboard of the server, not of another machine like your computer.
Thanks for the response. I assume there is no way to add a ‘copy to clipboard’ function to st.button
?
Not a builtin one, as far as I know. I guess you could pass the data from the server to the client using the components API and then use javascript to put the data in the clipboard.
I am assuming you want to copy data from the app to the client’s clipboard. If not, please clarify.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.