Skip to content

API for viewing the frame #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tdimitri opened this issue Jun 17, 2020 · 5 comments
Open

API for viewing the frame #15

tdimitri opened this issue Jun 17, 2020 · 5 comments

Comments

@tdimitri
Copy link

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.

@scopatz
Copy link

scopatz commented Jun 18, 2020

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

@maartenbreddels
Copy link

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)

@tdimitri
Copy link
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.

@devin-petersohn
Copy link
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.

@saulshanabrook
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants