A quick hack (overwriting the method to ignore the compact
directive in the IOContext
):
<< Base.show(io::IO, x::Union{Float64,Float32}) = Base.Grisu._show(io, x, Base.Grisu.SHORTEST, 0, true, false)
WARNING: Method definition show(IO, Union{Float64, Float32}) in module Grisu at grisu/grisu.jl:120 overwritten in module Main at REPL[0]:1.
<< rand(5)
>> 5-element Array{Float64,1}:
0.41685881323027596
0.43774537729371676
0.8202714955342147
0.04893977866057142
0.10743689580376481