Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
430def43
Commit
430def43
authored
4 years ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Rename extra references
parent
84a84856
No related branches found
No related tags found
1 merge request
!357
Only start ipcluster if the notebook uses cluster_profile
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/slurm_calibrate.sh
+2
-2
2 additions, 2 deletions
bin/slurm_calibrate.sh
with
2 additions
and
2 deletions
bin/slurm_calibrate.sh
+
2
−
2
View file @
430def43
...
...
@@ -37,7 +37,7 @@ echo "Starting influx feeder"
export
MPLBACKEND
=
AGG
# start an ip cluster if requested
if
[
"
${
uuid
}
"
!=
"NO_CLUSTER"
]
if
[
"
${
ipcluster_profile
}
"
!=
"NO_CLUSTER"
]
then
${
python_path
}
-m
IPython profile create
${
ipcluster_profile
}
--parallel
${
python_path
}
-m
ipyparallel.cluster start
--n
=
${
cluster_cores
}
--profile
=
${
ipcluster_profile
}
--daemon
&
...
...
@@ -49,7 +49,7 @@ echo "Running script"
${
python_path
}
-m
nbconvert
--to
rst
--ExecutePreprocessor
.timeout
=
36000
--ExecutePreprocessor
.allow_errors
=
True
--TemplateExporter
.exclude_input
=
True
--execute
${
nb_path
}
# stop the cluster if requested
if
[
"
${
uuid
}
"
!=
"NO_CLUSTER"
]
if
[
"
${
ipcluster_profile
}
"
!=
"NO_CLUSTER"
]
then
${
python_path
}
-m
ipyparallel.cluster stop
--profile
=
${
ipcluster_profile
}
profile_path
=
$(
${
python_path
}
-m
IPython locate profile
${
ipcluster_profile
}
)
...
...
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