Kotlin / dataframe

Structured data processing in Kotlin
https://kotlin.github.io/dataframe/overview.html
Apache License 2.0
768 stars 48 forks source link

Output resizable table in Jupyter notebooks #219

Open alllex opened 1 year ago

alllex commented 1 year ago

Currently, if dataframe cells contain text that is longer than a specific length, it gets truncated without the possibility to view the whole values. This makes it really hard to work with such dataframes.

image

If it's not possible or too involved to create resizable tables, then there should at least be a workaround to be able to adjust the width of the columns from the code.

alllex commented 1 year ago

After some digging I found an answer on how to manually change the content length for cell rendering. I submitted a PR to improve the docs in this regard:

However, this requires knowing in advance what is the suitable size for the content. Having the ability to change this dynamically via UI would still be preferrable.

Jolanrensen commented 1 year ago

We plan to focus our Jupyter support more on the Kotlin Notebook Intellij plugin (https://github.com/Kotlin/dataframe/issues/171) and Datalore notebooks that (will) have better tables overall. But thanks for letting us know!

koperagen commented 1 year ago

It's not the best, but you can hold mouse over cell and it should show tooltip with it's content. I think the issue is worth keeping open until it's actually adressed. With interactive widget that are now supported in notebooks it should be possible to make dataFrameConfig.display adjustable inplace. We might implement it way sooner than proper rendering of hierarhical tables in IntelliJ