<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>frontend.process.pipedprocess — IPython 0.10.2 documentation</title> <link rel="stylesheet" href="../../_static/default.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../../', VERSION: '0.10.2', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../../_static/jquery.js"></script> <script type="text/javascript" src="../../_static/underscore.js"></script> <script type="text/javascript" src="../../_static/doctools.js"></script> <link rel="top" title="IPython 0.10.2 documentation" href="../../index.html" /> <link rel="up" title="The IPython API" href="../index.html" /> <link rel="next" title="frontend.wx.console_widget" href="IPython.frontend.wx.console_widget.html" /> <link rel="prev" title="frontend.prefilterfrontend" href="IPython.frontend.prefilterfrontend.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="IPython.frontend.wx.console_widget.html" title="frontend.wx.console_widget" accesskey="N">next</a> |</li> <li class="right" > <a href="IPython.frontend.prefilterfrontend.html" title="frontend.prefilterfrontend" accesskey="P">previous</a> |</li> <li><a href="../../index.html">IPython 0.10.2 documentation</a> »</li> <li><a href="../index.html" accesskey="U">The IPython API</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="frontend-process-pipedprocess"> <h1>frontend.process.pipedprocess<a class="headerlink" href="#frontend-process-pipedprocess" title="Permalink to this headline">¶</a></h1> <div class="section" id="module-frontend-process-pipedprocess"> <h2>Module: <tt class="xref py py-mod docutils literal"><span class="pre">frontend.process.pipedprocess</span></tt><a class="headerlink" href="#module-frontend-process-pipedprocess" title="Permalink to this headline">¶</a></h2> <p>Inheritance diagram for <tt class="docutils literal"><span class="pre">IPython.frontend.process.pipedprocess</span></tt>:</p> <img src="../../_images/inheritance99a266d7de.png" usemap="#inheritance99a266d7de" class="inheritance"/><map id="inheritance99a266d7de" name="inheritance99a266d7de"> </map> <span class="target" id="module-IPython.frontend.process.pipedprocess"></span><p>Object for encapsulating process execution by using callbacks for stdout, stderr and stdin.</p> </div> <div class="section" id="pipedprocess"> <h2><a class="reference internal" href="#IPython.frontend.process.pipedprocess.PipedProcess" title="IPython.frontend.process.pipedprocess.PipedProcess"><tt class="xref py py-class docutils literal"><span class="pre">PipedProcess</span></tt></a><a class="headerlink" href="#pipedprocess" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="IPython.frontend.process.pipedprocess.PipedProcess"> <em class="property">class </em><tt class="descclassname">IPython.frontend.process.pipedprocess.</tt><tt class="descname">PipedProcess</tt><big>(</big><em>command_string</em>, <em>out_callback</em>, <em>end_callback=None</em><big>)</big><a class="headerlink" href="#IPython.frontend.process.pipedprocess.PipedProcess" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></p> <p>Class that encapsulates process execution by using callbacks for stdout, stderr and stdin, and providing a reliable way of killing it.</p> <dl class="method"> <dt id="IPython.frontend.process.pipedprocess.PipedProcess.__init__"> <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.frontend.process.pipedprocess.PipedProcess.__init__" title="Permalink to this definition">¶</a></dt> <dd><p>command_string: the command line executed to start the process.</p> <p>out_callback: the python callable called on stdout/stderr.</p> <p>end_callback: an optional callable called when the process finishes.</p> <p>These callbacks are called from a different thread as the thread from which is started.</p> </dd></dl> <dl class="method"> <dt id="IPython.frontend.process.pipedprocess.PipedProcess.run"> <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.frontend.process.pipedprocess.PipedProcess.run" title="Permalink to this definition">¶</a></dt> <dd><p>Start the process and hook up the callbacks.</p> </dd></dl> </dd></dl> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../../index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">frontend.process.pipedprocess</a><ul> <li><a class="reference internal" href="#module-frontend-process-pipedprocess">Module: <tt class="docutils literal"><span class="pre">frontend.process.pipedprocess</span></tt></a></li> <li><a class="reference internal" href="#pipedprocess"><tt class="docutils literal"><span class="pre">PipedProcess</span></tt></a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="IPython.frontend.prefilterfrontend.html" title="previous chapter">frontend.prefilterfrontend</a></p> <h4>Next topic</h4> <p class="topless"><a href="IPython.frontend.wx.console_widget.html" title="next chapter">frontend.wx.console_widget</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../../_sources/api/generated/IPython.frontend.process.pipedprocess.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../../search.html" method="get"> <input type="text" name="q" size="18" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="IPython.frontend.wx.console_widget.html" title="frontend.wx.console_widget" >next</a> |</li> <li class="right" > <a href="IPython.frontend.prefilterfrontend.html" title="frontend.prefilterfrontend" >previous</a> |</li> <li><a href="../../index.html">IPython 0.10.2 documentation</a> »</li> <li><a href="../index.html" >The IPython API</a> »</li> </ul> </div> <div class="footer"> © Copyright 2008, The IPython Development Team. Last updated on Apr 09, 2011. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1pre. </div> </body> </html>