Live data from Hacker News

A Haskell kernel for IPython

github.com

1–10 of 33 posts

Re: A Haskell kernel for IPython

#2
I'd love to see something like this but as a magic method for iPython Notebooks.

Using those you can integrate bash, R, Ruby, SQL, etc. into the same notebook and pass data between them all.

EDIT: Here's a link to most known magic extensions: https://github.com/ipython/ipython/wiki/Extensions-Index

Re: A Haskell kernel for IPython

#3

I'd love to see something like this but as a magic method for iPython Notebooks. Using those you can integrate bash, R, Ruby, SQL, etc. into the same notebook and pass data between them all. EDIT: Here's a link to most known magic extensions: https://github.com/ipython/ipython/wiki/Extensions-Index

Can't find a link, but I believe I've seen at least one demo passing data back and forth between Julia and Python in a notebook that looks similar to what you're referring to.

Edit: here's an example [0]

[0] http://nbviewer.ipython.org/urls/raw.github.com/JuliaLang/IJ...

Re: A Haskell kernel for IPython

#5
I think this is exciting and has a valid use case. The other day we were explaining Python list comprehensions which was heavily inspired by Haskell's list comprehensions. But it was no where as concise or expressive as Haskell.

In many cases Haskell is very concise and it helps to have an option on the interactive interpreter to enter a Haskell one-liner to prototype a solution.

Re: A Haskell kernel for IPython

#6
It's like org-mode, but without all the emacs! :)

I actually was just discussing with coworkers how I wish tools around org-mode could actually create an "editable" final state that didn't require emacs. I've been introducing iPython as a way around this, but I've been disappointed with forcing everyone into using python for our analysis work.

Only one of my coworkers really uses emacs, and so sharing perf data and analysis quickly has mostly become iPython.

This gives me hope!

Re: A Haskell kernel for IPython

#8
post #6

It's like org-mode, but without all the emacs! :) I actually was just discussing with coworkers how I wish tools around org-mode could actually create an "editable" final state that didn't require emacs. I've been introducing iPython as a way around this, but I've been disappointed with forcing everyone into using python for our analysis work. Only one of my coworkers really uses emacs, and so sharing perf data and a…

It would be awesome to have a org mode -> ipython export that also supports all the languages that org mode supports (or rather, the main subset, I guess), though I think that that's a long way of. Julia lang also supports an iPython notebook implementation, but if I remember correctly, they replaced python with julia in there. It would probably be a lot of work to support all different languages within ipython. Actually, just porting Babel over might be easier.

Re: A Haskell kernel for IPython

#9

I'd love to see something like this but as a magic method for iPython Notebooks. Using those you can integrate bash, R, Ruby, SQL, etc. into the same notebook and pass data between them all. EDIT: Here's a link to most known magic extensions: https://github.com/ipython/ipython/wiki/Extensions-Index

Can't find a link, but I believe I've seen at least one demo passing data back and forth between Julia and Python in a notebook that looks similar to what you're referring to. Edit: here's an example [0] [0] http://nbviewer.ipython.org/urls/raw.github.com/JuliaLang/IJ...

Excellent work with IHaskell; I don't want to hijack this thread, but since it came up organically:

The PyCall.jl [1] package allows transparent calling of Python from Julia. It's quite stable and exceptionally well done (it was written by Steven G. Johnson of FFTW [2] fame – his software is uniformly impressive). The IJulia package [3], which primarily provides a pure Julia IPython kernel so that you can interact with Julia via the various IPython front-ends, also includes [4] a Python package for calling Julia from Python plus IPython "magics" for calling Julia from a normal IPython process. This is rather more experimental than IJulia, but should be usable.

[1] https://github.com/stevengj/PyCall.jl

[2] http://fftw.org

[3] https://github.com/JuliaLang/IJulia.jl

[4] https://github.com/JuliaLang/IJulia.jl/tree/master/python

Re: A Haskell kernel for IPython

#10
This is great to see. The IPython project has grown to be much more than just a collection of nice interactive interfaces to Python. It is a well-designed JSON-based protocol between interactive interfaces and execution kernels – which can execute any language, not just Python. The fact that you can do things like IHaskell and IJulia is a testament to how well the IPython team has designed the protocol.

The best part about this project is that it stands to reduce much of the duplicated / wasted effort that goes into recreating the same interface functionality for every single programming language. This is already allowing Julia (and now Haskell) to reap the benefits of the amazing browser UI work that's gone into the IPython Notebook – all for the very low cost of implementing a rather simple ZMQ message server.

Post reply on HN