Embedding a remote Python shell in an application
<p>You can embed the <a href="http://ipython.scipy.org/">IPython</a> shell inside of your application so that it launches the shell in the foreground.  Is there a way to embed a telnet server in a python app so that you can telnet to a certain port and launch a remote IPython shell?  </p>

<p>Any tips for redirecting the input/output streams for IPython or how to hook it up to a telnet server library or recommendations for other libraries that could be used to implement this are much appreciated.  </p>

<p>Python includes a <a href="http://www.python.org/doc/lib/module-telnetlib.html" rel="nofollow">telnet client</a>, but not a telnet server.  You can implement a telnet server using <a href="http://twistedmatrix.com" rel="nofollow">Twisted</a>.  <a href="http://twistedmatrix.com/pipermail/twisted-python/2004-August/008335.html" rel="nofollow">Here's an example</a>.  As for hooking these things together, that's up to you.</p>
