Skip to content

API for viewing the frame #15

Open

Description

@tdimitri

Interactive users will want to control how the data is displayed. This might include sorting the view; coloring cells, columns, or rows; precision digits; or moving columns to the left. It may also interact with auto complete.

It is common practice to separate the view from the data (many applications can display data in a SQL database in different ways).

I believe that we need to define an interface to the display data class (for instance, an ordered dictionary of strings containing arrays is the simplest interface. additional kwargs might include display attributes for rows or columns, there might be header or footer information).

Thus, believe it is in scope to define an interface so that multiple developers can write their own display data class. Almost every demonstration needs a way to display large amount of data well.

Activity

  1. scopatz commented on Jun 18, 2020

    @scopatz

    @tdimitri - could you elaborate a bit more on a proposed API? This seem related to #1, about data exchange.

  2. maartenbreddels commented on Jun 18, 2020

    @maartenbreddels

    Indeed, many people will want to make 'dataframe viewers', we just saw a new one recently:
    widgetti/ipyvuetify#71

    If the exchange API is good, this would work with any dataframe (i.e. the dataframe libraries don't have to include it)

  3. tdimitri commented on Jun 18, 2020

    @tdimitri
    Author

    Sure.. when repr_html is called there should be a list of options on how to display the table.

    Here is one in HTML that we do... Notice how badrows or badcols (in this example) might be color marked for the user pick up easier.

    image

    Here is one in ANSI colored text

    image

    To me, how the data is displayed is left to another module/class. But then how does a user tag a column as "red" or make the header "bold". I can write more on this.

  4. devin-petersohn commented on Jun 18, 2020

    @devin-petersohn
    Member

    Viewing the dataframe is a form of visualization. This is an important topic but should be handled at the same time as visualization, which should probably be later.

  5. saulshanabrook commented on Jun 22, 2020

    @saulshanabrook

    Yeah, my assumption is that __str__, __repr__ and all Jupyter mimetype outputs would be not standardized... At least to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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