##// 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:

r2498:3eae1372
r7995:061632b4
Show More
test_imports.py
26 lines | 581 B | text/x-python | PythonLexer
Brian Granger
background_jobs.py => lib/backgroundjob.py and imports updated.
r2011 # encoding: utf-8
def test_import_coloransi():
from IPython.utils import coloransi
Brian Granger
generics.py => utils/generics.py
r2022 def test_import_generics():
from IPython.utils import generics
Brian Granger
ipstruct.py => utils/ipstruct.py and imports updated.
r2030 def test_import_ipstruct():
from IPython.utils import ipstruct
Brian Granger
genutils.py => utils/genutils.py and updated imports and tests.
r2023
Brian Granger
PyColorize.py => utils/PyColorize.py and updated imports.
r2042 def test_import_PyColorize():
from IPython.utils import PyColorize
Brian Granger
rlineimpl.py utils/rlineimpl.py and imports updated.
r2044
def test_import_rlineimpl():
Brian Granger
ultraTB.py => core/ultratb.py and imports updated.
r2048 from IPython.utils import rlineimpl
def test_import_strdispatch():
Brian Granger
upgrade_dir.py => utils/upgradedir.py and updated imports.
r2049 from IPython.utils import strdispatch
def test_import_upgradedir():
from IPython.utils import upgradedir
Brian Granger
wildcard.py => utils/wildcard.py and updated imports.
r2051
def test_import_wildcard():
from IPython.utils import wildcard
Brian Granger
winconsole.py => utils/winconsole.py and imports updated.
r2052