latexify_py icon indicating copy to clipboard operation
latexify_py copied to clipboard

IPython extension to automatically use conversions on displayed objects

Open Tronic opened this issue 2 years ago • 1 comments

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.

Tronic avatar Feb 21 '23 00:02 Tronic

Thanks for the suggestion. It looks directly patching display would be useful, but also involves unexpected side effects against the shell. We could provide it with a reasonable caution.

I was also considering to provide a cell magic to automatically add a decorator to functions defined in the cell. This would also be useful since the side-effect is limited within the cell, but it requires another parsing.

odashi avatar Feb 22 '23 22:02 odashi