From c749c4781c1e1cee0ff881455b37546f6d91c7d6 Mon Sep 17 00:00:00 2001 From: Andreas Freise <adf@star.bham.ac.uk> Date: Tue, 22 Sep 2015 15:01:09 +0100 Subject: [PATCH] changing parallels syntax to work with ipyton 4, now needs package ipyparallel --- pykat/parallel.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pykat/parallel.py b/pykat/parallel.py index cca017c..1053718 100644 --- a/pykat/parallel.py +++ b/pykat/parallel.py @@ -24,7 +24,9 @@ Contact at ddb@star.sr.bham.ac.uk @author: Daniel Brown """ -from IPython.parallel import Client +# former syntax depreciated since ipython 4: +#from IPython.parallel import Client +from ipyparallel import Client import sys import os @@ -44,10 +46,15 @@ class parakat(object): """ Uses the ipython clustering for running kat objects in parallel. - To use this you must have started an ipython cluster on your computer. + To use this you must have installed ipyparallel, for example, with + pip install ipyparallel + + Then yoy must start an ipython cluster on your computer. From a new terminal use the command: ipcluster start -n 4 + or: + ipcluster start --n=4 This will start a cluster with 4 workers. -- GitLab