Have a question about using the streamlit-aggrid Streamlit Component created by @PablocFonseca? Ask here!
I am using st_aggrid in a Python script on Streamlit Cloud. As of this morning, GridOptionsBuilder options don’t seem to be applied: the grid is now defaulting to 100 rows and there is a watermark of AG GRID For Trial Use Only appears when I go to my app on Streamlit Cloud.
Do I need to purchase the Enterprise version of AG Grid to leverage it within a Python script? I am loading 1 data frame into a grid, only using a few basic formatting options.
js = JsCode(“”"
function(e) {
debugger;
alert(e.node.data);
console.log(e);
console.log(e.node.data);
console.log(e.node.selected);
console.log(‘jay’);
console.log(e.rowIndex);
return e.node.data
};
“”")
options.configure_grid_options(onRowSelected=js)
How can i read the js and store in some list.
Foud a solution? I am having the same issue
Hi Team, I am trying to use AgGrid in one of my application. I can use it and it works for python 3.11. But if I try to use the same in python 3.7.5, i am getting below error. How to go about it.
2024-11-06 11:57:30.463 Uncaught app exception
Traceback (most recent call last):
File “XXXXXXXX\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py”, line 552, in run_script
exec(code, module.dict)
File “XXXXXXX.py”, line 7, in
from st_aggrid import AgGrid
File "XXXXXX\lib\site-packages\st_aggrid_init.py", line 19, in
class AgGridReturn(Mapping):
File “XXXXXX\lib\site-packages\st_aggrid_init_.py”, line 21, in AgGridReturn
data: pd.DataFrame | str = None
TypeError: unsupported operand type(s) for |: ‘type’ and ‘type’