[IPython-dev] About KernelManager
Fernando Perez
fperez.net at gmail.com
Sat Aug 7 19:20:32 EDT 2010
Hi Omar,
2010/8/7 Omar Andrés Zapata Mesa <andresete.chaos at gmail.com>:
> # -*- 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")
You're calling directly the class object, instead of the channel
object. Here's an example in Evan's code where he calls execute():
http://github.com/epatters/ipython/blob/qtfrontend/IPython/frontend/qt/console/frontend_widget.py#L129
Cheers,
f
More information about the IPython-dev
mailing list