Live data from Hacker News

A Haskell kernel for IPython

github.com

21–30 of 33 posts

Re: A Haskell kernel for IPython

#21

Author here - didn't expect this to end up on Hacker News, given the niche interest :) Happy to answer any questions you guys have. (And if anyone has an interest in contributing, please get in touch!)

IPython creator here, just to say I'm thrilled to see this! We've wanted more languages to follow this route, and while we have only had time to work directly with the Julia team, it's fabulous to see others following up with the idea.

Please don't hesitate to ask us on the dev mailing list if you run into any problems. For one thing, we're planning on making some updates to the protocol spec soon, based mostly on the experience of the IJulia work. It would be great to have your input there as well, in case you spot something that wouldn't fit well the patterns you saw while doing the Haskell port.

And besides, this means I now have one less excuse to get off my butt and learn Haskell! :)

Re: A Haskell kernel for IPython

#22

Author here - didn't expect this to end up on Hacker News, given the niche interest :) Happy to answer any questions you guys have. (And if anyone has an interest in contributing, please get in touch!)

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

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-producti...

Or, many examples of what the notebooks can do: http://nbviewer.ipython.org/

Re: A Haskell kernel for IPython

#23
post #22

Author here - didn't expect this to end up on Hacker News, given the niche interest :) Happy to answer any questions you guys have. (And if anyone has an interest in contributing, please get in touch!)

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 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-pr…

IHaskell 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.

Re: A Haskell kernel for IPython

#24

Author here - didn't expect this to end up on Hacker News, given the niche interest :) Happy to answer any questions you guys have. (And if anyone has an interest in contributing, please get in touch!)

IPython creator here, just to say I'm thrilled to see this! We've wanted more languages to follow this route, and while we have only had time to work directly with the Julia team, it's fabulous to see others following up with the idea. Please don't hesitate to ask us on the dev mailing list if you run into any problems. For one thing, we're planning on making some updates to the protocol spec soon, based mostly on th…

Thanks! I will shoot you an email soon.

Re: A Haskell kernel for IPython

#25

Author here - didn't expect this to end up on Hacker News, given the niche interest :) Happy to answer any questions you guys have. (And if anyone has an interest in contributing, please get in touch!)

IPython creator here, just to say I'm thrilled to see this! We've wanted more languages to follow this route, and while we have only had time to work directly with the Julia team, it's fabulous to see others following up with the idea. Please don't hesitate to ask us on the dev mailing list if you run into any problems. For one thing, we're planning on making some updates to the protocol spec soon, based mostly on th…

This is really interesting. Is there any hope for a hybrid language? Like python with haskells time system, or writing lambda functions like lisp and using python to execute? Basically, taking the 'best' parts of languages and combining them.

What about multiple definitions for functions depending on what kind of input is given. Like python has no tail recursion, but lisp does. Write a python function that gets transparently translated to lisp to utilize the features of the language.

Re: A Haskell kernel for IPython

#26
post #12

Earlier quoted context omitted.

There is a ipython emacs frontend, but I'm not familiar enough with emacs to say if it would help at all.

I'm pretty sure that it only exports the structure, but it doesn't allow editing and running of the code in ipython since that would require having support for the plethora of languages. Example: There's a c extension to babel/org-mode that allows you to write a document like this in normal text, and then type: +begin_src c int test = 42; printf("%i", test); +end_src and then run and execute this code block in the do…

Exactly.

If we can find a way to use the "ipython kernel" with other languages to generate a generic notebook that can access multiple language runtimes, it'll be unstoppable (just as unstoppable as org-mode is)

Re: A Haskell kernel for IPython

#27

Earlier quoted context omitted.

IPython creator here, just to say I'm thrilled to see this! We've wanted more languages to follow this route, and while we have only had time to work directly with the Julia team, it's fabulous to see others following up with the idea. Please don't hesitate to ask us on the dev mailing list if you run into any problems. For one thing, we're planning on making some updates to the protocol spec soon, based mostly on th…

This is really interesting. Is there any hope for a hybrid language? Like python with haskells time system, or writing lambda functions like lisp and using python to execute? Basically, taking the 'best' parts of languages and combining them. What about multiple definitions for functions depending on what kind of input is given. Like python has no tail recursion, but lisp does. Write a python function that gets trans…

This isn't related to a hybrid language per se. IPython runs a language core and then provides a notebook frontend atop it.

You could perhaps have multiple language cores each communicating problems to one another via the common language of the notebook... but that's nothing more than any other text serialization route with all of the challenges therein.

Re: A Haskell kernel for IPython

#28
I use ipython for all my (mostly scientific) python interpreter needs and have been looking for a functional programming language to learn. Between all the recent posts on haskell and now this, I think I know which one it will be.

Re: A Haskell kernel for IPython

#29

Author here - didn't expect this to end up on Hacker News, given the niche interest :) Happy to answer any questions you guys have. (And if anyone has an interest in contributing, please get in touch!)

Awesome work, thanks for sharing! Couple of weeks ago I catched talk by iPython dev in Budapest and started to think that it would be cool to have lisp support (as I want to learn more lisp), but maybe I wait until someone does a Haskell support first..
Post reply on HN