like shown here, ipython/jupyter has display hooks that can be registered with display formatters (e.g. png, html)
it would be nice if IRDisplay and IRKernel would work together so that
- we define a S3 or S4 generic (e.g.
jupyterdisplay.default)
- IRDisplay defines it for some classes (e.g.
jupyterdisplay.matrix)
- users can override it