From mboxrd@z Thu Jan 1 00:00:00 1970 From: Craig Barneses Subject: Re: IPython native kernel missing? Date: Mon, 21 Sep 2015 22:52:52 +0100 Message-ID: <56007C34.40003@member.fsf.org> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060803020401010800060105" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze91F-0006mP-1z for guix-devel@gnu.org; Mon, 21 Sep 2015 17:53:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze91B-00079m-Qz for guix-devel@gnu.org; Mon, 21 Sep 2015 17:53:05 -0400 Received: from ch0.freedombox.org.uk ([82.211.97.156]:32984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze91B-00078o-M7 for guix-devel@gnu.org; Mon, 21 Sep 2015 17:53:01 -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. --------------060803020401010800060105 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? looking at setup.py [0] it seems to be a separate module that is pulled in when setup.py is run. Are we depending on requirements.txt to give us this information, as this seems to be absent from this project? if so, I've attached a requirements.txt for python 2 and 3 generated from version in pypi. I expect the reason that it is not included in the package is that it's different depending on the python version. Regards Craig [0] https://github.com/jupyter/jupyter/blob/master/setup.py --------------060803020401010800060105 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= --------------060803020401010800060105 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== --------------060803020401010800060105--