Hi,
I need some advise i tried using the data_editor from this documentation: Dataframes - Streamlit Docs
specifically this data_editor example: https://doc-data-editor.streamlit.app/?utm_medium=oembed
from the documentation if I copy a table column with string on excel and paste it on the example (above link) its working fine.
but if I run this example locally in my ubuntu machine copy paste is not working.
import streamlit as st
import pandas as pd
df = pd.DataFrame(
[
{"command": "st.selectbox", "rating": 4, "is_widget": True},
{"command": "st.balloons", "rating": 5, "is_widget": False},
{"command": "st.time_input", "rating": 3, "is_widget": True},
]
)
#df = load_data()
edited_df = st.data_editor(df) # 👈 An editable dataframe
favorite_command = edited_df.loc[edited_df["rating"].idxmax()]["command"]
st.markdown(f"Your favorite command is **{favorite_command}** 🎈")
doing some search, i follow this article to add a copy paste mechanism for linux.
https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error
sudo apt-get install xsel to install the xsel utility.
sudo apt-get install xclip to install the xclip utility.
pip install gtk to install the gtk Python module.
pip install PyQt4 to install the PyQt4 Python module.
still its not working, is there something im missing?
Im using Ubuntu 20.04
and im using streamlit 1.28v
$ streamlit --version
Streamlit, version 1.28.2