We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa58b1 commit efa4b80Copy full SHA for efa4b80
src/builtins.jl
@@ -885,7 +885,7 @@ _py_mime_data(m::MIME, o) = begin
885
data = None
886
meta = None
887
try:
888
- x = o._repr_mimebundle_(include=[m])
+ x = type(o)._repr_mimebundle_(o, include=[m])
889
if isinstance(x, tuple):
890
data = x[0][m]
891
meta = x[1].get(m)
@@ -895,7 +895,7 @@ _py_mime_data(m::MIME, o) = begin
895
pass
896
if data is None and r is not None:
897
898
- x = getattr(o, r)()
+ x = getattr(type(o), r)(o)
899
900
data = x[0]
901
meta = x[1]
0 commit comments