home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- __docformat__ = 'restructuredtext en'
- import sys
- from twisted.internet import reactor
- from IPython.kernel.clientconnector import ClientConnector
- from IPython.kernel.twistedutil import ReactorInThread
- from IPython.kernel.twistedutil import blockingCallFromThread
- from IPython.kernel import codeutil
- import IPython.kernel.magic as IPython
- from IPython.kernel.task import MapTask, StringTask
- from IPython.kernel.error import CompositeError
- _client_tub = ClientConnector()
-
- def get_multiengine_client(furl_or_file = ''):
- client = blockingCallFromThread(_client_tub.get_multiengine_client, furl_or_file)
- return client.adapt_to_blocking_client()
-
-
- def get_task_client(furl_or_file = ''):
- client = blockingCallFromThread(_client_tub.get_task_client, furl_or_file)
- return client.adapt_to_blocking_client()
-
- MultiEngineClient = get_multiengine_client
- TaskClient = get_task_client
- rit = ReactorInThread()
- rit.setDaemon(True)
- rit.start()
-