Description
This is obviously more of a question / feature request than an issue, but being able to do inline plotting and image display would be a big win for this package!
Maybe this issue can be a starting point for discussion (or feel free to point me to a more appropriate venue, if available).
Here's the problem as I understand it:
- Jupyter implements a
display_data
message type that the kernel can use to communicate image data results to the front end. http://jupyter-client.readthedocs.org/en/latest/messaging.html#id3 - Go has a flexible standard image library, and lots of non-core plotting libraries built on top of it.
- The "gore-like" REPL that gophernotes uses to execute requests appears to know nothing about images (or anything at all but text produced by the Stringer interface)
Is there any way to bridge the impedance mismatch between 2) and 3)? If we can figure out a way to get image data out of the REPL, it seems pretty straightforward to implement the appropriate display_data
messages to communicate it back to the frontend.
In the meantime the only real way to do this is to write images to files and then embed them within markdown cells. But this is suboptimal both because it's clunky and because such images do not update live when the code that generates them changes due to caching, etc.
Anyway, making this work seemlessly would be an incredibly cool enhancement to this already very useful package. I'm pretty new to Go and Jupyter, but a very experienced developer otherwise, so I'm willing to help-out wherever I can.
Thanks!