##// END OF EJS Templates
Backport PR #2126: ipcluster broken with any batch (PBS/LSF/SGE)...
Backport PR #2126: ipcluster broken with any batch (PBS/LSF/SGE) I have setup ipcluster_config.py to start with LSF: ``` c.IPClusterStart.controller_launcher_class = 'LSF' c.IPClusterStart.engine_launcher_class = 'LSF' ``` But the ipcluster command fails to start the engines: ``` ipcluster start --profile=lsf -n 10 ``` The problem is fixed if I add quotes to the launch command string ```cmd``` in ```launcher.py```. ``` diff --git a/IPython/parallel/apps/launcher.py b/IPython/parallel/apps/launcher.py index e752d2a..6035303 100644 --- a/IPython/parallel/apps/launcher.py +++ b/IPython/parallel/apps/launcher.py @@ -73,7 +73,7 @@ WINDOWS = os.name == 'nt' # Paths to the kernel apps #----------------------------------------------------------------------------- -cmd = "from IPython.parallel.apps.%s import launch_new_instance; launch_new_instance()" +cmd = "\"from IPython.parallel.apps.%s import launch_new_instance; launch_new_instance()\"" ipcluster_cmd_argv = [sys.executable, "-c", cmd % "ipclusterapp"] ```

File last commit:

r4657:88fabb9a
r7995:061632b4
Show More
prettify.css
47 lines | 689 B | text/css | CssLexer
.pln{
color:#000
}
@media screen{
.str{
color:#BA2121;
}.kwd{
color:#008000;
font-weight: bold;
}.com{
color:#408080;
font-style: italic;
}.typ{
color:#606
}.lit{
color:#666666;
}.pun,.opn,.clo{
}.tag{
color:#008
}.atn{
color:#606
}.atv{
color:#080
}.dec,.var{
color:#606
}.fun{
color:red
}
}
pre.prettyprint{
padding:2px;
border:1px solid #888
}
ol.linenums{
margin-top:0;
margin-bottom:0
}
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{
list-style-type:none
}
li.L1,li.L3,li.L5,li.L7,li.L9{
background:#eee
}