Repository navigation
Provide hooks for arbitrary mimetypes handling. - #11848
Conversation
This should allow at some point inline images, an math in the terminal.
|
@asmeurer I know you are a Terminal IPython user with many extensions. |
| register_mimerenderer(ipython, 'text/latex', mathcat) | ||
|
|
||
| This example only work for iterm2 on macOS and skip error handling for brevity. | ||
| One could also invoke an external viewer with ``subporcess.run()`` and a |
|
I don't use IPython, but if this supports iTerm2 I think it's great. My only comment would be to make the images be full retina resolution. |
Sorry I thought you had some custom prompt extensions at some points. I might be confusing with something else. Apologies for the wrong ping and thanks for spotting the typo. |
|
I did have some custom stuff at one point but I gave up trying to finagle IPython at some point and just wrote my own thing https://github.com/asmeurer/mypython. |
|
Ah thanks, I'll try to remember this then. |
This should allow at some point inline images, an math in the terminal.