guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IPython native kernel missing?


From: Craig Barnes
Subject: Re: IPython native kernel missing?
Date: Mon, 21 Sep 2015 23:06:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

Hi Ricardo,

On 21/09/15 16:28, Ricardo Wurmus wrote:
> Hi Guix,
>
> I’m trying to package Jupyter (an improved version of IPython, from what
> I’ve heard) and noticed that the tests for jupyter-client fail because
> the native “python3” (or “python2”) kernel cannot be found.  According
> to the documentation, this “kernel” should always be available and
> doesn’t need to be installed.
>
> Looking around in the sources of python-ipython (an input to the Jupyter
> packages I’m working on) I see that this file
>
>     $out/lib/python2.7/site-packages/IPython/kernel/kernelspec.py
>
> contains hard-coded system paths:
>
>     SYSTEM_KERNEL_DIRS = ["/usr/share/jupyter/kernels",
>                           "/usr/local/share/jupyter/kernels",
>                          ]
>
> Yet I have not found any directory named “kernels” in the output of the
> python-ipython package.  Nor have I found any “kernel.json” files.  It
> seems to me that IPython should install at least the native kernel at
> some point, but currently doesn’t seem to include it.
>
> I would like to fix this, but I really don’t know anything about IPython
> and I don’t even know what the word “kernel” describes in this context.
> Could someone with an understanding of IPython please take a look at
> this?
IIRC we are using requirements.txt to determine all dependencies, which
it seems is not used by this project.  This is possibly because the
output is slightly different depending on the python version.

setup.py includes the ipykernel package, but to get a full list of
dependencies we need to install using pip in a virtualenv, then run pip
freeze to generate requirements.txt.

I've attached what I got as a result from python 2 and 3.


Cheers

Craig

Attachment: python-requirements.txt
Description: Text document

Attachment: python2-requirements.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]