When I visit http://localhost:80 , function is ok, but accessing http://192.168.1.1:80 function failureïŒi canât paste dataă 192.168.1.1 is my computerâs IP addressă
Steps to reproduce
Code snippet:
# coding=utf-8
import streamlit as st
import pandas as pd
if __name__ == '__main__':
df = pd.DataFrame(
{
'no': [''],
'name': [''],
'conf': [''],
'count': ['']
}
)
st.experimental_data_editor(df, num_rows='dynamic', use_container_width=True)
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Explain the undesired behavior or error you see when you run the code above.
If youâre seeing an error message, share the full contents of the error message here.
Debug info
Streamlit version: (Streamlit, version 1.21.0)
Python version: (Python 3.7.9)
Using Conda? PipEnv? PyEnv? Pex?
OS version: windows 7
Browser version:google chrome 108.0.5359.125
Requirements file
Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.
Links
Link to your GitHub repo:
Link to your deployed app:
Additional information
If needed, add any other context about the problem here.
I have the same issue. When I deploy the web, I can do copy/paste excel sheet into interactive table. But as a external user, they canât copy/paste excel sheet multiple lines into interactive table. There is no error, just canât copy/paste. I believe itâs related to toml file security configuration about the web. Anybody can help?
Just wanted to add onto this thread as another streamlit user experiencing this issue. When fully deployed the copy/paste functionality into the dataframe ceases to work. Hopefully this will be addressed in an upcoming release.
Hey, the copy/paste functionality of the st.data_editor uses the Clipboard API. This sometimes requires additional settings depending on how the Streamlit frontend is served. If it is served through an iframe, it requires adding the clipboard-write permission to the iframe:
<iframe allow="clipboard-write;">...
Potentially also the clipboard-read permission, but Iâm not 100% certain on this.
Also, on the first paste on the website, the user will get asked to allow this clipboard access:
If the user blocks this access, the feature will not work. Itâs also possible that the user has configured the browser to always block this feature.
I have the same issue here on ubuntu. In fact, streamlitâs own example has the same issue: st.data_editor - Streamlit Docs. Try copying and pasting in the editable dataframe there, and it wonât paste.
I see. However, I also have issue with my app deployed on Ubuntu (e.g. copying & paste wonât work when using the network url, but works ok when on local). I got the exact same error as @cyzht.
I think this is probably related to " As with many new APIs, the Clipboard API is only supported for pages served over HTTPS. If your connection is not HTTPS or localhost, then the copy &paste wonât work. See Copy dataframe to clipboard - #14 by MesumRaza
This is true, My app had similar issues (direct app not infused in iframe), clipboard API started asking permissions once I added HTTPS support into the app (enabled ssl in kubernetes ingress config for the app)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking âAccept allâ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
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.
Performance cookies
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.
Functional cookies
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.
Targeting cookies
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.