Skip to content

Commit 16020ad

Browse files
committed
use python's HTML display for single ColorMap
1 parent e231dd0 commit 16020ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/colormaps.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,9 @@ function Base.show(io::IO, m::MIME"image/svg+xml", c::ColorMap)
189189
Base.show(io, m, [c])
190190
end
191191

192+
function Base.show(io::IO, m::MIME"text/html", c::ColorMap)
193+
Base.show(io, m, Py(c))
194+
end
195+
196+
192197
########################################################################

0 commit comments

Comments
 (0)