How to reduce the number of DataFrames rows printed in IJulia?


I want to reduce the number of rows printed by default for a DataFrame in Jupyter. How do I do that?


I have no idea how Jupyter handles printing, but FWIW from the DataFrames side we use displaysize and print as many rows as can fit on screen.

1 Like

So the below will print only 6 rows now!

Base.displaysize() = (6, 80)

I put out a Stackoverflow community wiki


You shouldn’t overwrite the Base method like that… You can set e.g. ENV["LINES"] = 10 instead or use the do form of displaysize (see the docs) to apply it to a block. If this doesn’t work then the IJulia needs a way to set the displaysize of the io object it uses.