From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: IPython native kernel missing? Date: Tue, 22 Sep 2015 08:37:12 +0200 Message-ID: <87oagvot7r.fsf@mdc-berlin.de> References: <56007F66.4000603@thebarneses.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeHCh-0006RG-Ep for guix-devel@gnu.org; Tue, 22 Sep 2015 02:37:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeHCc-00049l-F2 for guix-devel@gnu.org; Tue, 22 Sep 2015 02:37:27 -0400 Received: from sinope.bbbm.mdc-berlin.de ([141.80.25.23]:60666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeHCc-00049V-2u for guix-devel@gnu.org; Tue, 22 Sep 2015 02:37:22 -0400 In-Reply-To: <56007F66.4000603@thebarneses.uk> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Craig Barnes Cc: guix-devel Hi Craig, >> I=E2=80=99m trying to package Jupyter (an improved version of IPython,= from what >> I=E2=80=99ve heard) and noticed that the tests for jupyter-client fail= because >> the native =E2=80=9Cpython3=E2=80=9D (or =E2=80=9Cpython2=E2=80=9D) ke= rnel cannot be found. According >> to the documentation, this =E2=80=9Ckernel=E2=80=9D should always be a= vailable and >> doesn=E2=80=99t need to be installed. >> >> Looking around in the sources of python-ipython (an input to the Jupyt= er >> packages I=E2=80=99m 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 =3D ["/usr/share/jupyter/kernels", >> "/usr/local/share/jupyter/kernels", >> ] >> >> Yet I have not found any directory named =E2=80=9Ckernels=E2=80=9D in = the output of the >> python-ipython package. Nor have I found any =E2=80=9Ckernel.json=E2=80= =9D files. It >> seems to me that IPython should install at least the native kernel at >> some point, but currently doesn=E2=80=99t seem to include it. >> >> I would like to fix this, but I really don=E2=80=99t know anything abo= ut IPython >> and I don=E2=80=99t even know what the word =E2=80=9Ckernel=E2=80=9D d= escribes 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. These are the requirements for Jupyter, right? They seem familiar because I have packaged a couple of those in the list. I=E2=80=99ll try = to package the missing dependencies (in particular =E2=80=9Cipykernel=E2=80=9D= ) and add it to the inputs to see if this makes a difference. Thank you! ~~ Ricardo