https://bugzilla.redhat.com/show_bug.cgi?id=1327979



--- Comment #19 from Miro HronĨok <[email protected]> ---
I believe that the tests does not see the python2 and python3 kernels, because
those kernels first need to get installed with:

pythonX -m ipykernel install

(Where X is 2 and 3.)

This command shall create a directory with kernel.json in it. I believe that
python-ipykernel package shall create those directories and install them to 
/usr/share/jupyter/kernels in order to make them discoverable for our tests
here and maybe also for installed python-notebook. Another problem is that the
above command will fail with our python-ipykernel with:

    ImportError: No module named 'IPython.paths'

as our ipython is old and does not have the paths submodule yet.

I was able to generate the file from a virtualenv and it looks like this:

    {
     "argv": [
      "/home/churchyard/tmp/venv36/bin/python",
      "-m",
      "ipykernel",
      "-f",
      "{connection_file}"
     ],
     "display_name": "Python 3",
     "language": "python"
    }

I will try to modify the python-ipykernel package to install similar files for
/usr/bin/python2 and /usr/bin/python3 and see if it solves the problem.

See
https://ipython.readthedocs.io/en/latest/install/kernel_install.html#kernels-for-python-2-and-3

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to