0

I managed to install IHaskell as a Jupyter Kernel, but when I try to run it, I get the following error:

ihaskell: 
Ran commands: 
ghc-pkg check
which ghc-pkg

Exception: user error (shelly did not find ghc-pkg in the PATH

which is perhaps to be expected since I don't have a global ghc install, but only through stack.

Is there a workaround?

lmo
  • 37,904
  • 9
  • 56
  • 69
RSS
  • 153
  • 1
  • 5

1 Answers1

1

You can avoid this error by running jupyter itself through stack:

 stack exec ipython -- notebook

It is described in ihaskell repo and linked guide for Ubuntu 14.04. Both Python and Haskell kernels work this way.

biozz
  • 11
  • 1