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
IPython.kernel.client cannot be imported inside an engine #47
Comments
[ LP comment 1 by: Brian Granger, on 2009-04-14 21:15:00.482329+00:00 ] Fixing this will require that the core be thread safe and that the reactor runs in a different thread from user code. This should happen this summer. |
[ LP comment 2 by: Vishal Vatsa, on 2009-04-24 18:35:58+00:00 ] Just wondering, if the problem is that there is already another reactor I ran this StringTask: I am sure using asyncclient has its own set of complications. -vishal 2009/4/14 Brian Granger ellisonbg@gmail.com:
|
[ LP comment 3 by: Brian Granger, on 2009-04-27 21:12:24+00:00 ] There are a couple of issue:
I haven't though about using the asyncclient though in the engine. It Cheers, Brian On Fri, Apr 24, 2009 at 11:35 AM, Vishal Vatsa vishal.vatsa@gmail.com wrote:
Brian E. Granger, Ph.D. |
This won't be fixed in the Twisted version, but works in the pyzmq version that Min is working on. |
Original Launchpad bug 300218: https://bugs.launchpad.net/ipython/+bug/300218
Reported by: dejan-igi (Dejan Pecevski).
Importing IPython.kernel.client in an engine doesn't work.
The twisted reactor is started for the controller and engine
automatically when they start and for the client when
IPython.kernel.client is imported. The problem is that when executing import
IPython.kernel.client script in the engine, the engine already has the reactor running,
and the import tries to start the reactor again. This causes
a the ipengine<->ipcontroller communication to fail on
subsequently executed commands.
A typical use case when one needs to import IPython.kernel.client in the
engines, is when one wants to use one of the engines as a client connected
to another ipcontroller, and it seems impossible to do it,
if one cannot import the client in one of the engines.
The text was updated successfully, but these errors were encountered: