diff --git a/pykat/parallel.py b/pykat/parallel.py index cca017c9a9e8c276166ceb0cb9a9376e0218ce3d..1053718417dd847417be6cc44e0fc7d59b30d9fb 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.