Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPython extension to automatically use conversions on displayed objects #176

Open
Tronic opened this issue Feb 21, 2023 · 1 comment
Open
Assignees
Labels

Comments

@Tronic
Copy link

Tronic commented Feb 21, 2023

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.

@odashi
Copy link
Collaborator

odashi commented Feb 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants