The output of dataframe
I have set output as dataframe but it does not look good. I prefer the output component to be fixed.Anyone could give me some advice, thanks
2023-08-15T15:24:36Z
You can setinteractive=Falseto make the dataframe static.
2023-08-17T01:31:22Z
thanks for your reply!the input is an excel file and the output is a dataframe.the method is pd.read_excel().the purpose is the dataframe could be in a container that has a fixed width and height and users could use scroll to borrowers the whole dataframe, and I would like to set input and output as equal height which could make UI look better.the problem is that  equal_height method does not work, I think the reason is the output dataframe is dynamic.thanks!
2023-08-21T13:27:59Z
We don’t currently support pagination / fixed rows in a gr.Dataframe but we are looking into it!
2023-08-22T02:40:57Z
thanks for reply!Hope you can achieve it!
2023-08-22T14:31:34Z
I’ve opened a pull request here:Add height parameter and scrolling to `gr.Dataframe` by abidlabs · Pull Request #5283 · gradio-app/gradio · GitHub
2023-09-16T15:16:00Z
Hi@abidlabs! I’m interested if any changes have been made recently in this regard. I have a working UI that, up until several days ago, had a Datframe which automatically set it’s height to fit the number of rows. This was my preferred setup. Without making any changes to the code, the dataframe has reverted to be a fixed height (only ~12 rows) and now a scrollbar appears. I would really like to change the dataframe back to fit the number of rows, without a scroll bar. Any thoughts on this? I initialize the dataframe like so:plotting_df=gr.Dataframe(value=df2,headers="class","type","group","ε54Cr","ε50Ti","ε94Mo"],
 label="CosmoPlot Compilation:",type="pandas", visible=True, interactive=False)Thanks!
2023-09-18T18:49:58Z
dpraz:plotting_df=gr.Dataframe(value=df2,headers="class","type","group","ε54Cr","ε50Ti","ε94Mo"],
 label="CosmoPlot Compilation:",type="pandas", visible=True, interactive=False)Hi@dpraz, yes so you can set aheightfor thegr.Dataframe, which is kind of a max height – if you set this to a very large value, then the dataframe’s height will just be the height of the contents. Now that’s how itshouldbehave. However, we currently have a bug that is preventing this from happening – we are looking into it!Issues · gradio-app/gradio · GitHub
2023-09-18T20:05:04Z
Thanks@abidlabs! Yes, I was experiencing this bug and wasn’t sure if it was an issue with the way I was coding or actually an issue with the update. Glad to see we have people on the case. Thanks again for the update.