Haskell under Jupiter

There are strangely no instructions on the Internet on how to run Haskell in a Jupyter environment. Any documentation that leads you to this requires you to compile from the source, however, when you try to do this, all kinds of build errors occur.

It seems strange that an environment that would undoubtedly give Haskell so much impact is strangely not provided by enough people to have decent documentation. However, this language is supposedly supported.

Has anyone got this to work?

+9
source share
2 answers

Here is what I did to run it on 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 

Configure 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 

Launch Haskell in Jupiter

 stack exec jupyter -- notebook 

More information at: https://github.com/gibiansky/IHaskell

+8
source

Here is an image of the Jupyter Docker Stacks community for IHaskell. If you have Docker installed, you can start the Haskell Jupyter notepad with one command.

0
source

Source: https://habr.com/ru/post/1271039/


All Articles