all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Craig Barnes <craig@thebarneses.uk>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: IPython native kernel missing?
Date: Tue, 22 Sep 2015 08:08:12 +0100	[thread overview]
Message-ID: <5600FE5C.7020201@thebarneses.uk> (raw)
In-Reply-To: <87oagvot7r.fsf@mdc-berlin.de>

Hi Ricardo,
>>> 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.
> These are the requirements for Jupyter, right?  They seem familiar
> because I have packaged a couple of those in the list.  I’ll try to
> package the missing dependencies (in particular “ipykernel”) and add it
> to the inputs to see if this makes a difference.
yes only Jupyter, the steps I used where

mkvirtualenv jupyter
pip install jupyter
# lots of busyness ...
pip freeze > requirements.txt

Of course you probably only need to make sure that the requirements
listed in setup.py are in you package as the rest are dependencies of
those.

Thank you for packaging this.


Craig

      reply	other threads:[~2015-09-22  7:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21 15:28 IPython native kernel missing? Ricardo Wurmus
2015-09-21 21:52 ` Craig Barneses
2015-09-21 22:06 ` Craig Barnes
2015-09-22  6:37   ` Ricardo Wurmus
2015-09-22  7:08     ` Craig Barnes [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5600FE5C.7020201@thebarneses.uk \
    --to=craig@thebarneses.uk \
    --cc=guix-devel@gnu.org \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.