From c8e8edea207d3c00d093bff881a8d1edd4f5cbfa Mon Sep 17 00:00:00 2001 From: James Chiang Date: Mon, 30 Sep 2019 14:13:38 -0700 Subject: [PATCH] run command line scripts under ipython since png rendering with savefig is significantly faster --- python/ssh_dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ssh_dispatcher.py b/python/ssh_dispatcher.py index d41ae84..f6e5689 100644 --- a/python/ssh_dispatcher.py +++ b/python/ssh_dispatcher.py @@ -114,7 +114,7 @@ def launch_script(self, remote_host, task_id, *args): command += f'"cd {working_dir}; source {setup}; ' for key, value in self.lcatr_envs.items(): command += f'export {key}={value}; ' - command += f'(echo; {script} {task_id} ' + command += f'(echo; ipython {script} {task_id} ' command += ' '.join([str(_) for _ in args]) command += r' && echo Task succeeded on \`hostname\`' command += r' || echo Task failed on \`hostname\`)'