[IPython-dev] 0.11rc1 : problem with tutorial for PBS in http://ipython.org/ipython-doc/dev/parallel/parallel_process.html

Johann Cohen-Tanugi johann.cohentanugi at gmail.com
Thu Jul 7 06:43:13 EDT 2011


ok thanks a lot. I am attaching the LSF code I added to launcher.py. It 
seems to do what I expect on my LSF batch farm.
In order to pipe I follow Mathias' suggestion but the code could 
probably use expert's check. Especially I have python 2.6.5 so I 
modified the corresponding version of check_output at the top of 
launcher.py. Maybe my code does not work for python > 2.7 then?

Feel free to include it if it is deemed reasonable, or to make any 
modifications you guys see fit.
best,
Johann

On 07/06/2011 04:34 PM, Thomas Kluyver wrote:
> On 6 July 2011 14:55, Johann Cohen-Tanugi 
> <johann.cohentanugi at gmail.com <mailto:johann.cohentanugi at gmail.com>> 
> wrote:
>
>     hmmm isn't it :
>
>         def find_args(self):
>             return self.submit_command + [self.batch_file]
>
>     in BatchSystemLauncher that I need to overwrite?
>
>
> find_args produces the list of args which are fed to Popen by 
> BatchSystemLauncher.start(). Replacing it won't fix this problem.
>
> The line you need to look at is in the start method:
>
> output = check_output(self.args, env=os.environ)
>
> Thomas
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110707/d3d5ce39/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: launcher.py
Type: text/x-python
Size: 40744 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20110707/d3d5ce39/attachment.py>


More information about the IPython-dev mailing list