Skip to content

feat: support ibis tables (...and define a more formal protocol) #599

@NickCrews

Description

@NickCrews

I would love to render (very very large, ie millions of rows) ibis tables in solara.DataTable. This currently doesn't work because

  • solara calls len(df) on the data. ibis uses .count() instead, to make the execution very explicit
  • the logic to go from ibis table to a list[dict] of records isn't implemented for ibis

I see a few ways to support this:

  • manually add ibis support :)
  • Make some more formal protocol how solara interacts with dataframes, and then let users implement the translation layer themselves.
  • Use ibis itself as your dataframe abstraction layer :) Another dependency, doesn't support vaex, probably not worth it.

I'm cooking up a little PR right now that at least refactors things to make them a bit cleaner, regardless of if we do something more drastic. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions