<!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>Module: kernel.zmq.parentpoller — IPython 2.3.0 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: '2.3.0', 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 2.3.0 documentation" href="../../index.html" /> <link rel="up" title="The IPython API" href="../index.html" /> <link rel="next" title="Module: kernel.zmq.pylab.backend_inline" href="IPython.kernel.zmq.pylab.backend_inline.html" /> <link rel="prev" title="Module: kernel.zmq.log" href="IPython.kernel.zmq.log.html" /> </head> <body> <div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px"> <a href="http://ipython.org/"><img src="../../_static/logo.png" border="0" alt="IPython Documentation"/></a> </div> <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.kernel.zmq.pylab.backend_inline.html" title="Module: kernel.zmq.pylab.backend_inline" accesskey="N">next</a> |</li> <li class="right" > <a href="IPython.kernel.zmq.log.html" title="Module: kernel.zmq.log" accesskey="P">previous</a> |</li> <li><a href="http://ipython.org">home</a>| </li> <li><a href="../../search.html">search</a>| </li> <li><a href="../../index.html">documentation </a> »</li> <li><a href="../index.html" accesskey="U">The IPython API</a> »</li> </ul> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../../index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">Module: <tt class="docutils literal"><span class="pre">kernel.zmq.parentpoller</span></tt></a><ul> <li><a class="reference internal" href="#classes">2 Classes</a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="IPython.kernel.zmq.log.html" title="previous chapter">Module: <tt class="docutils literal"><span class="pre">kernel.zmq.log</span></tt></a></p> <h4>Next topic</h4> <p class="topless"><a href="IPython.kernel.zmq.pylab.backend_inline.html" title="next chapter">Module: <tt class="docutils literal"><span class="pre">kernel.zmq.pylab.backend_inline</span></tt></a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../../_sources/api/generated/IPython.kernel.zmq.parentpoller.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" /> <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="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="module-IPython.kernel.zmq.parentpoller"> <span id="module-kernel-zmq-parentpoller"></span><h1>Module: <tt class="xref py py-mod docutils literal"><span class="pre">kernel.zmq.parentpoller</span></tt><a class="headerlink" href="#module-IPython.kernel.zmq.parentpoller" title="Permalink to this headline">¶</a></h1> <div class="section" id="classes"> <h2>2 Classes<a class="headerlink" href="#classes" title="Permalink to this headline">¶</a></h2> <dl class="class"> <dt id="IPython.kernel.zmq.parentpoller.ParentPollerUnix"> <em class="property">class </em><tt class="descclassname">IPython.kernel.zmq.parentpoller.</tt><tt class="descname">ParentPollerUnix</tt><a class="headerlink" href="#IPython.kernel.zmq.parentpoller.ParentPollerUnix" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="http://docs.python.org/2/library/threading.html#threading.Thread" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></a></p> <p>A Unix-specific daemon thread that terminates the program immediately when the parent process no longer exists.</p> <dl class="method"> <dt id="IPython.kernel.zmq.parentpoller.ParentPollerUnix.__init__"> <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.kernel.zmq.parentpoller.ParentPollerUnix.__init__" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </dd></dl> <dl class="class"> <dt id="IPython.kernel.zmq.parentpoller.ParentPollerWindows"> <em class="property">class </em><tt class="descclassname">IPython.kernel.zmq.parentpoller.</tt><tt class="descname">ParentPollerWindows</tt><big>(</big><em>interrupt_handle=None</em>, <em>parent_handle=None</em><big>)</big><a class="headerlink" href="#IPython.kernel.zmq.parentpoller.ParentPollerWindows" title="Permalink to this definition">¶</a></dt> <dd><p>Bases: <a class="reference external" href="http://docs.python.org/2/library/threading.html#threading.Thread" title="(in Python v2.7)"><tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></a></p> <p>A Windows-specific daemon thread that listens for a special event that signals an interrupt and, optionally, terminates the program immediately when the parent process no longer exists.</p> <dl class="method"> <dt id="IPython.kernel.zmq.parentpoller.ParentPollerWindows.__init__"> <tt class="descname">__init__</tt><big>(</big><em>interrupt_handle=None</em>, <em>parent_handle=None</em><big>)</big><a class="headerlink" href="#IPython.kernel.zmq.parentpoller.ParentPollerWindows.__init__" title="Permalink to this definition">¶</a></dt> <dd><p>Create the poller. At least one of the optional parameters must be provided.</p> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>interrupt_handle</strong> : HANDLE (int), optional</p> <blockquote> <div><p>If provided, the program will generate a Ctrl+C event when this handle is signaled.</p> </div></blockquote> <p><strong>parent_handle</strong> : HANDLE (int), optional</p> <blockquote class="last"> <div><p>If provided, the program will terminate immediately when this handle is signaled.</p> </div></blockquote> </td> </tr> </tbody> </table> </dd></dl> <dl class="staticmethod"> <dt id="IPython.kernel.zmq.parentpoller.ParentPollerWindows.create_interrupt_event"> <em class="property">static </em><tt class="descname">create_interrupt_event</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.kernel.zmq.parentpoller.ParentPollerWindows.create_interrupt_event" title="Permalink to this definition">¶</a></dt> <dd><p>Create an interrupt event handle.</p> <p>The parent process should use this static method for creating the interrupt event that is passed to the child process. It should store this handle and use it with <tt class="docutils literal"><span class="pre">send_interrupt</span></tt> to interrupt the child process.</p> </dd></dl> <dl class="method"> <dt id="IPython.kernel.zmq.parentpoller.ParentPollerWindows.run"> <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.kernel.zmq.parentpoller.ParentPollerWindows.run" title="Permalink to this definition">¶</a></dt> <dd><p>Run the poll loop. This method never returns.</p> </dd></dl> <dl class="staticmethod"> <dt id="IPython.kernel.zmq.parentpoller.ParentPollerWindows.send_interrupt"> <em class="property">static </em><tt class="descname">send_interrupt</tt><big>(</big><em>interrupt_handle</em><big>)</big><a class="headerlink" href="#IPython.kernel.zmq.parentpoller.ParentPollerWindows.send_interrupt" title="Permalink to this definition">¶</a></dt> <dd><p>Sends an interrupt event using the specified handle.</p> </dd></dl> </dd></dl> </div> </div> </div> </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.kernel.zmq.pylab.backend_inline.html" title="Module: kernel.zmq.pylab.backend_inline" >next</a> |</li> <li class="right" > <a href="IPython.kernel.zmq.log.html" title="Module: kernel.zmq.log" >previous</a> |</li> <li><a href="http://ipython.org">home</a>| </li> <li><a href="../../search.html">search</a>| </li> <li><a href="../../index.html">documentation </a> »</li> <li><a href="../index.html" >The IPython API</a> »</li> </ul> </div> <div class="footer"> © Copyright The IPython Development Team. Last updated on Jul 14, 2015. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3. </div> </body> </html>