I solved the problem with
sudo mkdir /etc/ipython/
sudo nano /etc/ipython/ipython_config.py
add the following lines:
c = get_config() c.LocalControllerLauncher.controller_cmd = ['/usr/bin/python2', '-m', 'IPython.parallel.controller'] c.LocalEngineLauncher.engine_cmd = ['/usr/bin/python2', '-m', 'IPython.parallel.engine'] c.LocalEngineSetLauncher.engine_cmd = ['/usr/bin/python2', '-m', 'IPython.parallel.engine']
And now the engines should start with python2
EDIT for Jupyter 1.0 or IPython 4.0: Change to
c = get_config() c.LocalControllerLauncher.controller_cmd = ['/usr/bin/python2', '-m', 'ipyparallel.controller'] c.LocalEngineLauncher.engine_cmd = ['/usr/bin/python2', '-m', 'ipyparallel.engine'] c.LocalEngineSetLauncher.engine_cmd = ['/usr/bin/python2', '-m', 'ipyparallel.engine']
and return the cluster tab: sudo mkdir / etc / jupyter /
sudo nano /etc/jupyter/jupyter_notebook_config.py
Add this:
c.NotebookApp.server_extensions.append('ipyparallel.nbextension')
source share