OpenGene.jl icon indicating copy to clipboard operation
OpenGene.jl copied to clipboard

don't override display

Open stevengj opened this issue 8 years ago • 1 comments

You are overloading display in order to customize output. This is the wrong way to do it — see the manual on custom pretty printing.

To customize REPL output, you should override Base.show(io::IO, x::MyType) and/or Base.show(io::IO, ::MIME"text/plain", x::MyType), as explained in the manual.

Overriding display directly will break IJulia, Juno, and other environments that have a custom display mechanism.

stevengj avatar Oct 13 '17 20:10 stevengj

You're right, I will make a change.

Thanks

sfchen avatar Oct 13 '17 23:10 sfchen