Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sean Leavey
pykat
Commits
c749c478
Commit
c749c478
authored
9 years ago
by
Andreas Freise
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pykat/parallel.py
+9
-2
9 additions, 2 deletions
pykat/parallel.py
with
9 additions
and
2 deletions
pykat/parallel.py
+
9
−
2
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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment