metakernel icon indicating copy to clipboard operation
metakernel copied to clipboard

use ipython display formatter directly for missing _repr_mimebundle

Open morlic opened this issue 1 year ago • 0 comments

Also fix #232, #284

I am not sure this will be fully backwards compatible, IPython code mentions that _repr_mimebundle_ is there since 6.x and the DisplayFormatter should take care of rendering all registered mimetypes, but still.

My problem was that graphviz Source objects expose only _repr_mimebundle which is not used by the metakernel so I had to wrap that, but this looks like a simple enough fix that worked for me. DisplayFormatter can be configured, perhaps the kernel kwargs should be passed to it, not sure.

morlic avatar Nov 20 '24 10:11 morlic