[IPython-dev] Remote kernels works BUT local kernels does not work.

Thomas Kluyver takowl at gmail.com
Fri Apr 17 19:57:33 EDT 2015


On 17 April 2015 at 16:47, Ruslan Korniichuk <
paad.ruslan.korniichuk at gmail.com> wrote:

> 1. I can work with remote kernels, but because I changed
> c.KernelManager.ip  in ipython_notebook_config.py Jupyter Notebook can't
> work with local kernels. Please tell me ideas how I can use, in one Jupyter
> Notebook, local and remote kernels (change kernel from local to remote).
> Maybe I can change IP address not only in ipython_notebook_config.py?
>

I think there are two possibilities: either provide a kernel manager that
knows about both local and remote kernels, or write kernelspecs that can
start a kernel remotely and tunnel the local ZMQ sockets to it.


> 3. Where I can read information about new architecture of Jupyter, for
> example, I tried find manager.py file on Jupyter resources but failed:(
>

The architecture is still basically the same, but we have split the
components up more. That file is now part of the jupyter_client repository:

https://github.com/jupyter/jupyter_client/blob/master/jupyter_client/manager.py


> 4. What about python2 kernel if I installed Jyputer Notebook like this:
> $ sudo apt-get install python3-pip
> $ ipytsudo pip3 install "ipython[notebook]"
> Is it possible? I tried change kernel.json (from /usr/bin/python3 to
> /usr/bin/python). It is does not work:
> ERROR: /usr/bin/python: IPython.kernel.zmq requires pyzmq >= 13;
> 'IPython.kernel' is a package and cannot be directly executed
>

In order to get a Python 2 kernel, you will need to install IPython on
Python 2 as well, and then run `ipython2 kernelspec install-self`.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150417/0fc0aeb3/attachment.html>


More information about the IPython-dev mailing list