Skip to content

Commit 8b538f3

Browse files
authored
Shorten chunk output in show (#167)
* Shorten chunk output in show * print lines individually
1 parent e211986 commit 8b538f3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/show.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ macro implement_show(t)
88
end
99

1010
_show(io, A) = summary(io, A)
11-
function _show(io, mime, A)
11+
function _show(io, _, A)
1212
summary(io, A)
1313
println(io)
1414
println(io)
1515
print(io, nameof(typeof(haschunks(A))))
1616
if haschunks(A) isa Chunked
17-
print(io, ": ")
18-
show(io, mime, eachchunk(A))
17+
print(io, ": (\n")
18+
foreach(eachchunk(A).chunks) do c
19+
print(io," ")
20+
show(IOContext(io,:compact => true), length.(c))
21+
print(io,"\n")
22+
end
23+
println(io,")")
1924
end
2025
end

0 commit comments

Comments
 (0)