[IPython-dev] About KernelManager

Omar Andrés Zapata Mesa andresete.chaos at gmail.com
Sat Aug 7 17:47:07 EDT 2010


Hi all.
I am having problems with kernelmanager from evan's repo.

I am writing a simple code

# -*- coding: utf-8 -*-
from kernelmanager import KernelManager
from session import Session
import zmq
xreq_addr = ('127.0.0.1',5555)
sub_addr = ('127.0.0.1', 5556)
rep_addr = ('127.0.0.1', 5557)
context = zmq.Context()
session = Session()
km = KernelManager(xreq_addr, sub_addr, rep_addr,context,session)
km.start_channels()
km.xreq_channel_class.execute("print 1")

and the error is

km.xreq_channel_class.execute(code)
TypeError: unbound method execute() must be called with XReqSocketChannel
instance as first argument (got str instance instead)

how should I use  kernelmanager ?

Thnk!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100807/3e9c5a3b/attachment.html>


More information about the IPython-dev mailing list