The current display of search results is not optimal:
with the expanders, you don't see anything meaningful right away.
some expanders load slowly, as they need querying and/or plotting
the plot gets tiny when it's within an expander
A solution might be to have the search result view be a tab container with 3 tabs:
"Overview"/"Search Result" for something quick that indicates success and some base line information (maybe how many results you got, and if it's less than 5, display them right away.
"Data" where the user can browse the actual data that the search returned (i.e. a full list of the IDs returned, and if it's manuscripts, also a table with the metadata)
"Chart(s)" where the plots can live. (Here we might even experiment with increasing the page width... see here.)
Maybe one could even have a separate tab for downloading the results?
On the streamlit docs regarding the tabs, there is a warning, that always all tabs are rendered. I hope that doesn't mean that all loading must happen first, before the tab component is displayed. Otherwise this might be counter-productive in terms of performance. Needs trying out.
The current display of search results is not optimal:
A solution might be to have the search result view be a tab container with 3 tabs:
Maybe one could even have a separate tab for downloading the results?
On the streamlit docs regarding the tabs, there is a warning, that always all tabs are rendered. I hope that doesn't mean that all loading must happen first, before the tab component is displayed. Otherwise this might be counter-productive in terms of performance. Needs trying out.