How to specify the row in page and the the every cell's height and width in dataframe?

Hello,
I’m just learning gradio for self usage, it’s cool. But I have one question when I’m doing my homework recently.
I’m using gr.Dataframe to load a large scale of tsv file, I decide to usage pagination to display, so I want to show 20 rows in one page. However, from its constructor, I only find the max_height for the whole height of one page, but how to specify the heigh of each row, or is there any way to specify the row count for every page?

Thanks,
Yb2S3

1 Like

I’ve tried to mess around with the format of gr.DataFrame, but it didn’t go very well. If you set wrap=True, the text will wrap around when it’s too long, so I managed to use that…

Other methods might include using pandas Style, or specifying CSS classes or IDs for each Row and specifying them in CSS, but it seems like it would take a lot of effort…

If you ask a question on the Gradio channel on HF Discord, you might find a more decent method.