Questions tagged [ihaskell]

IHaskell is an implementation of the IPython kernel protocol which allows you to use Haskell inside IPython frontends such as qtconsole and notebook.

IHaskell is an implementation of the IPython kernel protocol which allows you to use Haskell inside IPython frontends such as qtconsole and notebook.

Links:

28 questions
1
vote
1 answer

Additional steps in Dockerfile

I have a Docker image which is a server for a web IDE (Jupyter notebook) for Haskell. Each time I want to allow the usage of a library in the IDE, I have to go to the Dockerfile and add the install command into it, then rebuild the image. Another…
Nick Tchayka
  • 563
  • 3
  • 14
1
vote
1 answer

Unable to import Haskell packages in the "user" package database

Is there something I need to do to enable import of Haskell packages from the user package database? While most apps and tools on my system (GHC, GHCi, Cabal, Stack, my IDE, etc.) seem to be aware of both the global and user package databases by…
orome
  • 45,163
  • 57
  • 202
  • 418
1
vote
1 answer

Unable to install IHaskel kernel into Jupyter: "could not parse version number"

I've recently completed the installation instructions for Haskell, and have reached the final step where I run ihaskell install to install the IHaskell kernel into Jupyter. However at this point I'm stuck, with the error Detected IPython, but could…
orome
  • 45,163
  • 57
  • 202
  • 418
1
vote
1 answer

Haskell Chart library: make log-log line chart with identical x and y axes

Ok, I'm getting stumped by the Haskell Chart library. I've figured out this way to make a log-log line chart of a Vector of values in Kronos Haskell: import Data.Vector (Vector, (!)) import qualified Data.Vector as V import…
Luis Casillas
  • 29,802
  • 7
  • 49
  • 102
0
votes
1 answer

Set Size of Plot in IHaskell (Jupyter) with Chart Package

I am able to do a simple 2D plot inside a Jupyter Notebook (with IHaskell) using the Haskell Chart Package. The code is here, import Graphics.Rendering.Chart.Easy cData = [1,2,3,4,3,2,1] toRenderable $ do layout_title .= "Recovered Signal" …
TomP
  • 108
  • 6
0
votes
1 answer

Where is IHaskellPrelude coming from in this error?

I'm working in an ihaskell jupyter notebook, so I know the obvious answer to this. But I'm also using an explicit import from Data.List where it shows this error import qualified Data.List as L So I am actually confused about the line that quotes…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
0
votes
1 answer

How can I set OverloadedStrings in an ihaskell notebook?

I understand from the sample notebook that I should be able to enable and disable extensions as follows: -- We can disable extensions. :ext NoEmptyDataDecls data Thing :1:1: error: • ‘Thing’ has no constructors (EmptyDataDecls…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
0
votes
1 answer

moving jupyter (ihaskell) folder off of dropbox

I have been working with Jupyter notebooks in a directory inside of my dropbox. (This work is actually in IHaskell, but I am not sure if this is relevant.) The folder got too big for dropbox, and so I moved it out. After that, I can't get the…
0
votes
1 answer

iHaskell: using LaTeX style files in markdown cells

I know that IHaskell supports LaTeX in markdown cells. I'd like to include a style file. How can I do this? I tried adding an 'include' line to stack.yaml, but that didn't work.
0
votes
1 answer

IHaskell Kernel shutting down with ghc installed using Stack

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…
RSS
  • 153
  • 1
  • 5
0
votes
1 answer

Can't install 'ihaskell-diagrams' using Cabal

When I try to cabal install ihaskell-diagrams I get the error The pkg-config package 'glib-2.0' is required but it could not be found. What is glib and how do I install it so that it is available for Cabal? Resolving…
orome
  • 45,163
  • 57
  • 202
  • 418
0
votes
1 answer

difficulties installing iHaskell

After much difficulty with cabal install ihaskell I read If you have trouble with this installation, please make sure to try the Github version first. IHaskell is in rapid development, so Hackage may not always be the most recent. In order to…
john mangual
  • 7,718
  • 13
  • 56
  • 95
0
votes
0 answers

trying to install iHaskell - conflicting versions of hLint

According to the iHaskell page it should be possible to install from Hackage cabal install ihaskell However, when I do so it fails to install certain packages: ... [ 7 of 44] Compiling HsColour ( src/HsColour.hs, dist/build/HsColour.o…
john mangual
  • 7,718
  • 13
  • 56
  • 95
1
2