Avoid truncation for display of custom Tables object

I have a custom type CollectedBenchmarks that implements the Tables.jl interface. I’ve defined

function Base.show(io::IO, ::MIME"text/plain", b::CollectedBenchmarks)
    pretty_table(io, b; show_row_number=true)
end

using pretty_table from PrettyTables.jl. However, in a Jupyter notebook, for an object result::CollectedBenchmarks, I’m seeing the following truncated output:

Same with display(result).

In contrast, if I call pretty_table directly, I get the full table:

What is responsible for the trunctation in the display case, and how can I configure or disable it?

1 Like