Custom rendering from python object

Customising the default renderer for a generic type like a dict is possible, but highly recommended against for the simple reason that it’s not performant or cooperative with other people intending to do the same.

Instead, if you want to render data, I’d advise either creating a custom type for which you can register a MIME renderer, or to create a dedicated function that invokes IPython.display for your special dict.

1 Like