3 ms·
In IPython notebooks with python, objects with special methods like _repr_svg_ and _repr_latex_ get displayed using SVG or LaTeX or whatever. Is there a way to
by mkl 13y ago
In IPython notebooks with python, objects with special methods like _repr_svg_ and _repr_latex_ get displayed using SVG or LaTeX or whatever. Is there a way to do this with IHaskell?
Is IHaskell related to ihaskell-notebook? https://github.com/creswick/ihaskell-notebook https://github.com/creswick/ihaskell-notebook
If anyone wants a good intro to the amazing stuff IPython can do, check this (~3hr) video out: http://pyvideo.org/video/1652/ipython-in-depth-high-productivity-interactive-a-0 http://pyvideo.org/video/1652/ipython-in-depth-high-producti...
Or, many examples of what the notebooks can do: http://nbviewer.ipython.org/ http://nbviewer.ipython.org/
- PieSquared 13y agoIHaskell is inspired by ihaskell-notebook, but instead of forwarding to GHCi via text pipes, it actually uses the GHC API to evaluate code. I think this will mean that the integration can be deeper, and it can more easily do things like type inspection and pretty printing. I'm planning on introducing some typeclasses analogous to Haskell's Show for Latex and SVG and HTML representations, but haven't quite figured out how to do it - it is the next order of business though.