1

When I display a DataFrame in Pluto.jl a scrollbar appears. Does somebody know how to make my output cell bigger/fit my dataframe?

enter image description here

Jonas
  • 1,401
  • 9
  • 25
  • I asked the same question on the [julia discourse](https://discourse.julialang.org/t/dataframe-doesnt-fit-output-block-pluto-jl/57125). – Jonas Mar 14 '21 at 11:57

2 Answers2

1

If you convert the dataframe to html, Pluto should display it as an entire HTML table:

using BrowseTables
...
df = select(dfs[1], :sample)
HTMLTable(df)
Bill
  • 5,600
  • 15
  • 27
  • Thnx for the suggestion. Unfortunatly this crashes my notebook. I assume because my dataframe contains a few million records... Just for the record, I get these kind of errors: `[1:0x22ba00000000] 22654 ms: Scavenge 3816.4 (3953.0) -> 3815.7 (3960.3) MB, 15.5 / 0.0 ms (average mu = 0.639, current mu = 0.586) allocation failure ` – Jonas Mar 14 '21 at 21:33
  • Btw, I reported the issue at the BrowseTables github. – Jonas Mar 14 '21 at 21:46
  • 1
    Seems like the scrollbar makes good sense for a table that size :). – Bill Mar 14 '21 at 21:49
  • Would make more sense if the scrollbar was not needed until clicking on the "... more" for showing more rows than the standard first 10 + the last. Please suggest this in the Pluto improvement suggestion box in the bottom! – LinusSch Mar 24 '21 at 20:55
0

you can change the css of Pluto to prevent the issue. Adding a cell with:

html"""<style>
pluto-output.scroll_y {
    max-height: 450px; /* changed this from 400 to 450 */
}
"""

changes this: enter image description here

to this: enter image description here

Jonas
  • 1,401
  • 9
  • 25