Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
c749c478
Commit
c749c478
authored
Sep 22, 2015
by
Andreas Freise
Browse files
changing parallels syntax to work with ipyton 4, now needs package ipyparallel
parent
0ff5d3cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/parallel.py
View file @
c749c478
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment