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.