Skip to content

FormattedFrame in Kotlin Notebook does not render HTML #1354

@Jolanrensen

Description

@Jolanrensen

Using df.format {}.with {} in Kotlin Notebook currently displays an ordinary native table.
These do not support formatting at the moment.

This is unexpected behavior, as a user would exect a formatted DataFrame.

Not only is this unexpected, but it's tediously difficult to get the FormattedFrame rendered according to the way
the user defined it:

  • FormattedFrame.toStandaloneHtml() completely ignores any user-formatting when output in notebooks.
  • FormattedFrame.toHtml() does work for changing the background color of cells, but text color is ignored (textColor does not work for number colums #251)
  • FormattedFrame.toHtml().toString().let(::HTML) seems to be the only way to print the DataFrame exactly how it's defined

We should probably make it so that a FormattedFrame gets rendered as HTML by default until native DataFrame tables in notebooks support formatting themselves.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions