Skip to content

Commit 0e88348

Browse files
author
Christopher Doris
committed
Py is always showable as text/plain
1 parent 97804a5 commit 0e88348

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Py.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ end
265265
Base.show(io::IO, mime::MIME, o::Py) = pyshow(io, mime, o)
266266
Base.show(io::IO, mime::MIME"text/csv", o::Py) = pyshow(io, mime, o)
267267
Base.show(io::IO, mime::MIME"text/tab-separated-values", o::Py) = pyshow(io, mime, o)
268+
269+
Base.showable(::MIME"text/plain", ::Py) = true
268270
Base.showable(mime::MIME, o::Py) = pyshowable(mime, o)
269271

270272
Base.getproperty(x::Py, k::Symbol) = pygetattr(x, string(k))

0 commit comments

Comments
 (0)