Print DataFrame as "less"-command style

Hello,

is there a way to print to screen a DataFrame in similar fashion as the “less” command in Linux? So that it displays the data that fits the current terminal size, and with the arrow keys to scroll the columns and rows.

Is there any suggestion for an equivalent approach?

Thank you all.

1 Like

No, but that would be cool thing to tap into.

You can use the pacakges TableView.jl or BrowseTables.jl for this.

1 Like

Thank you! I managed to use BrowseTables with my DataFrames without problem. However, not with TableView. Is this only valid for Tables or also DataFrames?

a DataFrame is a Table. A Table is really just a set of functions that types can choose to implement, and a DataFrame chooses to implement them.

It makes it possible for something like TableView to work with lots of different packages.

1 Like

for completeness, check TerminalPager.jl [ANN] Announcing TerminalPager.jl