Skip to content

Commit efa4b80

Browse files
author
Christopher Doris
committed
fix mime show bug
1 parent efa58b1 commit efa4b80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builtins.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ _py_mime_data(m::MIME, o) = begin
885885
data = None
886886
meta = None
887887
try:
888-
x = o._repr_mimebundle_(include=[m])
888+
x = type(o)._repr_mimebundle_(o, include=[m])
889889
if isinstance(x, tuple):
890890
data = x[0][m]
891891
meta = x[1].get(m)
@@ -895,7 +895,7 @@ _py_mime_data(m::MIME, o) = begin
895895
pass
896896
if data is None and r is not None:
897897
try:
898-
x = getattr(o, r)()
898+
x = getattr(type(o), r)(o)
899899
if isinstance(x, tuple):
900900
data = x[0]
901901
meta = x[1]

0 commit comments

Comments
 (0)