##// END OF EJS Templates
Merged ipython-notification branch. IPython.kernel.core.notification provides a basic, performant, notification center. Interpreter developers are encouraged to send notifications for relevant interpreter events (e.g. printed output, exceptions, etc.). See docs/source/developer/notification_blueprint.txt for an overview and use cases. Merge also contains a fix for I.kernel.engineservice.ThreadedEngineService to propagate exceptions to clients, and in-progress Cocoa frontend.
Merged ipython-notification branch. IPython.kernel.core.notification provides a basic, performant, notification center. Interpreter developers are encouraged to send notifications for relevant interpreter events (e.g. printed output, exceptions, etc.). See docs/source/developer/notification_blueprint.txt for an overview and use cases. Merge also contains a fix for I.kernel.engineservice.ThreadedEngineService to propagate exceptions to clients, and in-progress Cocoa frontend.

File last commit:

r1395:1feaf0a3
r1446:157b72a4 merge
Show More
asyncclient.py
41 lines | 1.5 KiB | text/x-python | PythonLexer
# encoding: utf-8
"""Asynchronous clients for the IPython controller.
This module has clients for using the various interfaces of the controller
in a fully asynchronous manner. This means that you will need to run the
Twisted reactor yourself and that all methods of the client classes return
deferreds to the result.
The main methods are are `get_*_client` and `get_client`.
"""
__docformat__ = "restructuredtext en"
#-------------------------------------------------------------------------------
# Copyright (C) 2008 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Imports
#-------------------------------------------------------------------------------
from IPython.kernel import codeutil
from IPython.kernel.clientconnector import ClientConnector
# Other things that the user will need
from IPython.kernel.task import MapTask, StringTask
from IPython.kernel.error import CompositeError
#-------------------------------------------------------------------------------
# Code
#-------------------------------------------------------------------------------
_client_tub = ClientConnector()
get_multiengine_client = _client_tub.get_multiengine_client
get_task_client = _client_tub.get_task_client
get_client = _client_tub.get_client