[Haskell-cafe] Installing ihaskell on nixos
info at rotnetix.com
info at rotnetix.com
Fri Jan 9 02:52:20 UTC 2015
Thank you for the tip. I did that but then the ihaskell notebook failed to
actually load haskell.
so I added the following to the config file:
c = get_config()
c.KernelManager.kernel_cmd = [exe, 'kernel', '{connection_file}']
c.Session.key = b''
c.Session.keyfile = b''
# Syntax highlight properly in Haskell notebooks.
c.NbConvertBase.default_language = "haskell"
# Where to look for templates.
template_path = "/".join(__file__.split("/")[:-1] + ["templates"])
c.TemplateExporter.template_path = [template_path]
And every time I run the ihaskell notebook / console it also adds:
exe =
'/nix/store/hlkvkavkgm3hj08ffdlziq30r7zyr060-haskell-ihaskell-ghc7.8.3-0.4.3.0-shared/bin/IHaskell'.replace('
', '\\ ')
So I now have a whole list of these at the top.
However now the kernel keeps crashing with :
2015-01-09 03:47:51.673 [NotebookApp] KernelRestarter: restarting kernel
(1/5)
WARNING:root:kernel 0d8057d4-b51e-4acc-a262-ceee9a84edee restarted
IHaskell: Failed to load interface for ‘IHaskell.Display’
Use -v to see a list of the files searched for.
Failed to load interface for ‘IHaskell.Display’
Use -v to see a list of the files searched for.
Failed to load interface for ‘IHaskell.IPython.Stdin’
Use -v to see a list of the files searched for.
Any ideas?
On Thursday, January 8, 2015 at 8:09:03 PM UTC+11, Utku Demir wrote:
>
> I reproduced the issue, had ~/.ipython/profile_haskell directory, but not
> ipython_config.py inside it after installation.
>
> I just created an empty file with `touch
> ~/.ipython/profile_haskell/ipython_config.py` and then iHaskell started
> successfully.
>
> On Thu Jan 08 2015 at 10:07:36 EET <in... at rotnetix.com <javascript:>>
> wrote:
>
>> I am trying to set up ihaskell on EC2. I start with the NixOs EC2
>> instance (from http://nixos.org/nixos/download.html) and then basically
>> install the ihaskell package using nix-env -i ihaskell. The installation
>> runs fine but when I try to start the notebook with ihaskell notebook i get
>> the following:
>>
>> Updating IPython profile.
>> Loading profile from
>> /nix/store/hlkvkavkgm3hj08ffdlziq30r7zyr060-haskell-ihaskell-ghc7.8.3-0.4.3.0-shared/share/x86_64-linux-ghc-7.8.3/ihaskell-0.4.3.0/profile/profile.tar
>> IHaskell:
>> Ran commands:
>> mkdir -p /root/.ihaskell
>> mkdir -p /root/.ihaskell/notebooks
>> mkdir -p /root/.ihaskell
>> /nix/store/hnmgn0jrpzlp5d91m5xawpr2iqsjxh7j-ipython-2.3.1/bin/ipython
>> locate profile haskell
>> which
>> /nix/store/hnmgn0jrpzlp5d91m5xawpr2iqsjxh7j-ipython-2.3.1/bin/ipython
>> /nix/store/hnmgn0jrpzlp5d91m5xawpr2iqsjxh7j-ipython-2.3.1/bin/ipython
>> locate profile haskell
>> which
>> /nix/store/hnmgn0jrpzlp5d91m5xawpr2iqsjxh7j-ipython-2.3.1/bin/ipython
>>
>> Exception: /root/.ipython/profile_haskell/ipython_config.py: openFile:
>> does not exist (No such file or directory)
>>
>> I poked around a bit and the root/.ipython/profile_haskell/ contains none
>> of the expected profile files... Could not find anything by googling
>> around except the suggestion to run the ihaskell setup command which seems
>> to have been discontinued
>>
>> Can anyone suggest what I could try?
>>
>> Thanks
>> Riaan
>>
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskel... at haskell.org <javascript:>
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20150108/8e9cf8a2/attachment.html>
More information about the Haskell-Cafe
mailing list