Thanks to visit codestin.com
Credit goes to github.com

Skip to content

make BlockingKernelClient the default Client #3222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 27, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IPython/kernel/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _session_default(self):
return Session(config=self.config)

# the class to create with our `client` method
client_class = DottedObjectName('IPython.kernel.client.KernelClient')
client_class = DottedObjectName('IPython.kernel.blocking.BlockingKernelClient')
client_factory = Type()
def _client_class_changed(self, name, old, new):
self.client_factory = import_item(str(new))
Expand Down
3 changes: 1 addition & 2 deletions IPython/kernel/tests/test_message_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import nose.tools as nt

from IPython.kernel import KernelManager, BlockingKernelClient
from IPython.kernel import KernelManager


from IPython.testing import decorators as dec
Expand All @@ -31,7 +31,6 @@
def setup():
global KM, KC
KM = KernelManager()
KM.client_factory = BlockingKernelClient
KM.start_kernel(stdout=PIPE, stderr=PIPE)
KC = KM.client()
KC.start_channels()
Expand Down