dataframe icon indicating copy to clipboard operation
dataframe copied to clipboard

Support Swing rendering of DataFrame in Kotlin Notebook plugin

Open ileasile opened this issue 3 years ago • 2 comments

Now we have a default (HTML/JS) rendering of DataFrame tables in Kotlin notebook plugin. It is slow. Guys in DataSpell solved it in the following way: they parse the output of pandas tables, extract the data, execute some commands sometimes, and show reparsed data in a Swing panel. It works better.

To do it with dataframe, we need some work to be done:

  • [ ] Complete #80
  • [ ] Provide DataFrame.simpleHtml() method for obtaining simple html table. Now, html() returns some JS that renders HTML. It's better to have such methos for all dataframe-like objects
  • [ ] Provide DataFrame.simpleHtml(start, end) method for obtaining a sub-range of the rows of a DataFrame-like object
  • [ ] Add extra kotlin-dataframe class to the HTML output to distinguish Kotlin tables from Pandas ones.
  • [ ] It should be possible to create serializable representation for DataFrame-like objects.

ileasile avatar Sep 26 '22 18:09 ileasile

This probably requires us to check how to do (or add) hierarchical data frame support in the DataSpell swing dataframes

Jolanrensen avatar Jan 23 '23 15:01 Jolanrensen

@ermolenkodev Could you update your progress here? :) And could we have a demo for version 0.10.0 or shall we postpone it to 0.11.0?

Jolanrensen avatar Apr 06 '23 19:04 Jolanrensen