From mboxrd@z Thu Jan 1 00:00:00 1970 From: Craig Barnes Subject: Re: IPython native kernel missing? Date: Mon, 21 Sep 2015 23:06:30 +0100 Message-ID: <56007F66.4000603@thebarneses.uk> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000603030705040105010303" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze9Hm-0001vv-9P for guix-devel@gnu.org; Mon, 21 Sep 2015 18:10:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze9Hh-0006nw-8d for guix-devel@gnu.org; Mon, 21 Sep 2015 18:10:10 -0400 Received: from ch0.freedombox.org.uk ([82.211.97.156]:32988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze9Hh-0006dQ-3k for guix-devel@gnu.org; Mon, 21 Sep 2015 18:10:05 -0400 In-Reply-To: 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: Ricardo Wurmus , guix-devel This is a multi-part message in MIME format. --------------000603030705040105010303 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 --------------000603030705040105010303 Content-Type: text/plain; charset=UTF-8; name="python-requirements.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="python-requirements.txt" ZGVjb3JhdG9yPT00LjAuMgppcHlrZXJuZWw9PTQuMC4zCmlweXRob249PTQuMC4wCmlweXRo b24tZ2VudXRpbHM9PTAuMS4wCmlweXdpZGdldHM9PTQuMC4zCkppbmphMj09Mi44Cmpzb25z Y2hlbWE9PTIuNS4xCmp1cHl0ZXI9PTEuMC4wCmp1cHl0ZXItY2xpZW50PT00LjAuMApqdXB5 dGVyLWNvbnNvbGU9PTQuMC4yCmp1cHl0ZXItY29yZT09NC4wLjYKTWFya3VwU2FmZT09MC4y MwptaXN0dW5lPT0wLjcuMQpuYmNvbnZlcnQ9PTQuMC4wCm5iZm9ybWF0PT00LjAuMApub3Rl Ym9vaz09NC4wLjQKcGF0aC5weT09OC4xLjEKcGV4cGVjdD09My4zCnBpY2tsZXNoYXJlPT0w LjUKcHR5cHJvY2Vzcz09MC41ClB5Z21lbnRzPT0yLjAuMgpweXptcT09MTQuNy4wCnF0Y29u c29sZT09NC4wLjEKc2ltcGxlZ2VuZXJpYz09MC44LjEKdGVybWluYWRvPT0wLjUKdG9ybmFk bz09NC4yLjEKdHJhaXRsZXRzPT00LjAuMAo= --------------000603030705040105010303 Content-Type: text/plain; charset=UTF-8; name="python2-requirements.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="python2-requirements.txt" YmFja3BvcnRzLnNzbC1tYXRjaC1ob3N0bmFtZT09My40LjAuMgpjZXJ0aWZpPT0yMDE1Ljku Ni4yCmRlY29yYXRvcj09NC4wLjIKZnVuY3Rvb2xzMzI9PTMuMi4zLnBvc3QyCmlweWtlcm5l bD09NC4wLjMKaXB5dGhvbj09NC4wLjAKaXB5dGhvbi1nZW51dGlscz09MC4xLjAKaXB5d2lk Z2V0cz09NC4wLjMKSmluamEyPT0yLjgKanNvbnNjaGVtYT09Mi41LjEKanVweXRlcj09MS4w LjAKanVweXRlci1jbGllbnQ9PTQuMC4wCmp1cHl0ZXItY29uc29sZT09NC4wLjIKanVweXRl ci1jb3JlPT00LjAuNgpNYXJrdXBTYWZlPT0wLjIzCm1pc3R1bmU9PTAuNy4xCm5iY29udmVy dD09NC4wLjAKbmJmb3JtYXQ9PTQuMC4wCm5vdGVib29rPT00LjAuNApwYXRoLnB5PT04LjEu MQpwZXhwZWN0PT0zLjMKcGlja2xlc2hhcmU9PTAuNQpwdHlwcm9jZXNzPT0wLjUKUHlnbWVu dHM9PTIuMC4yCnB5em1xPT0xNC43LjAKcXRjb25zb2xlPT00LjAuMQpzaW1wbGVnZW5lcmlj PT0wLjguMQp0ZXJtaW5hZG89PTAuNQp0b3JuYWRvPT00LjIuMQp0cmFpdGxldHM9PTQuMC4w Cg== --------------000603030705040105010303--