latexify_py
latexify_py copied to clipboard
IPython extension to automatically use conversions on displayed objects
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.
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.