Haskell under Jupyter

Here's what I've done to get it up and running in Linux (Lubuntu 16.0)

Prerequisites:

sudo apt-get install -y python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev

Setup IHaskell locally

git clone https://github.com/gibiansky/IHaskell.git
cd IHaskell
pip3 install -r requirements.txt
curl -sSL https://get.haskellstack.org/ | sh
stack install gtk2hs-buildtools
stack setup
stack install

Install Haskell kernal for IPython

stack exec -- ihaskell install --stack

Run Haskell in Jupyter

stack exec jupyter -- notebook

More details in: https://github.com/gibiansky/IHaskell


Here is a Community Jupyter Docker Stacks image for IHaskell. If you have Docker installed, then you can run a Haskell Jupyter notebook with one command.