You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a Python object supports one or more of the IPython display methods, it would be good to automatically implement the corresponding writemime method so that the object displays graphically in IJulia (etc.).
Will also need to overload mimewritable for PyObject, since in this case checking method_exists(writemime, ...) won't be the correct thing to do.
If you had an image coming from a file, it would then call _repr_png_:
In [1]: from IPython.display import Image
In [2]: a=Image('logo/logo.png')
In [3]: a._repr_png_()[:20] # just show the first 20 characters
Out[3]: '\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x02\x08'
If a Python object supports one or more of the IPython display methods, it would be good to automatically implement the corresponding
writemime
method so that the object displays graphically in IJulia (etc.).Will also need to overload
mimewritable
forPyObject
, since in this case checkingmethod_exists(writemime, ...)
won't be the correct thing to do.See also this julia-dev discussion.
cc: @fperez, @JeffBezanson
The text was updated successfully, but these errors were encountered: