This could use the %load_ext mechanism and patch itself somewhere within the IPython.display framework, such that no decorators on functions would be needed but it would simply format as LaTeX any output value that the module can (or should) reformat as such.