Skip to content

Is there a way to change how specific types are displayed? #2679

Discussion options

You must be logged in to vote

Overriding Base.show works and affects how pluto displays StructArrays. I was overriding the wrong method before.
You have to overwride function Base.show(io::IO, ::MIME"text/plain", v::MyVector{<:MyType}).
See this answer: https://stackoverflow.com/questions/58962304/how-to-overload-base-show-for-custom-array-types

Outside of the interactive inspector stuff, this doesn't seem to have anything to do with pluto.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kpa28-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant