How do I host an IPython kernel for remote debugging
<p>When a remote process runs into some problem I want to be able to connect to that process with an IPython kernel for remote debugging.  What is the correct way to do this on both the server and client side?</p>

<h3>Server</h3>

<p>How do I start an IPython kernel running in my Python process (which happens to be running a Tornado event loop.)  </p>

<h3>Communicate</h3>

<p>What information do I need to send from the server to the client so that it knows how to connect?</p>

<h3>Client</h3>

<p>How do I connect to the remote IPython kernel given the connection information?</p>