Skip to content
Snippets Groups Projects
Commit c749c478 authored by Andreas Freise's avatar Andreas Freise
Browse files

changing parallels syntax to work with ipyton 4, now needs package ipyparallel

parent 0ff5d3cb
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,9 @@ Contact at ddb@star.sr.bham.ac.uk ...@@ -24,7 +24,9 @@ Contact at ddb@star.sr.bham.ac.uk
@author: Daniel Brown @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 sys
import os import os
...@@ -44,10 +46,15 @@ class parakat(object): ...@@ -44,10 +46,15 @@ class parakat(object):
""" """
Uses the ipython clustering for running kat objects in parallel. 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: From a new terminal use the command:
ipcluster start -n 4 ipcluster start -n 4
or:
ipcluster start --n=4
This will start a cluster with 4 workers. This will start a cluster with 4 workers.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment