##// END OF EJS Templates
Merge pull request #8296 from minrk/rm-kernel...
Merge pull request #8296 from minrk/rm-kernel remove ipython_kernel

File last commit:

r21095:f29bcf13 merge
r21224:f9254a22 merge
Show More
__init__.py
56 lines | 1.6 KiB | text/x-python | PythonLexer
Min RK
remove utils.zmqrelated...
r21079 """The IPython ZMQ-based parallel computing interface."""
MinRK
update recently changed modules with Authors in docstring
r4018
Min RK
remove utils.zmqrelated...
r21079 # Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
MinRK
update recently changed modules with Authors in docstring
r4018
MinRK
cleanup pass
r3644
MinRK
depend on pyzmq-2.1dev on Windows...
r3779 import os
MinRK
warn on detection of libzmq 3
r4248 import warnings
MinRK
pyzmq-2.1.3 related testing adjustments
r3661 import zmq
MinRK
bind_kernel on a bound kernel is a no-op
r7312 from IPython.config.configurable import MultipleInstanceError
MinRK
warn on detection of libzmq 3
r4248
Min RK
update pickleutil imports
r21070 from ipython_kernel.pickleutil import Reference
MinRK
add DirectView.importer contextmanager, demote targets to mutable flag...
r3665
MinRK
organize IPython.parallel into subpackages
r3673 from .client.asyncresult import *
from .client.client import Client
from .client.remotefunction import *
from .client.view import *
from .controller.dependency import *
MinRK
include errors in IPython.parallel namespace
r7483 from .error import *
from .util import interactive
MinRK
organize IPython.parallel into subpackages
r3673
MinRK
add IPython.parallel.bind_kernel...
r6893 #-----------------------------------------------------------------------------
# Functions
#-----------------------------------------------------------------------------
def bind_kernel(**kwargs):
"""Bind an Engine's Kernel to be used as a full IPython kernel.
This allows a running Engine to be used simultaneously as a full IPython kernel
with the QtConsole or other frontends.
This function returns immediately.
"""
MinRK
mv IPython.zmq to IPython.kernel.zmq
r9372 from IPython.kernel.zmq.kernelapp import IPKernelApp
Min RK
s/IPython.parallel/ipython_parallel/
r20860 from ipython_parallel.apps.ipengineapp import IPEngineApp
MinRK
bind_kernel on a bound kernel is a no-op
r7312
# first check for IPKernelApp, in which case this should be a no-op
# because there is already a bound kernel
if IPKernelApp.initialized() and isinstance(IPKernelApp._instance, IPKernelApp):
return
MinRK
add IPython.parallel.bind_kernel...
r6893 if IPEngineApp.initialized():
MinRK
bind_kernel on a bound kernel is a no-op
r7312 try:
app = IPEngineApp.instance()
except MultipleInstanceError:
pass
else:
return app.bind_kernel(**kwargs)
raise RuntimeError("bind_kernel be called from an IPEngineApp instance")
MinRK
add IPython.parallel.bind_kernel...
r6893
MinRK
add DirectView.importer contextmanager, demote targets to mutable flag...
r3665