-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
AttributeError: 'InProcessKernel' object has no attribute 'io_loop' #319
Comments
I ran into the same issue. It means that any exception that occurs from code that the user typed in crashes the kernel. I know that |
The problem seems to be that the io_loop attribute (along with the msg_queue attribute) are normally set by the kernel base class in In my application, kernel.control_stream is None and there are no entries in kernel.shell_streams so the stream dispatchers wouldn't be registered anyway. My workaround is to call the base class method directly on condition that the io_loop attribute is missing after starting the in process kernel:
Suggested permanent fix: |
I filed a similar bug under the
jupyter/qtconsole
project, but later narrowed the problem down toipykernel
, so I'm opening a new bug report here.I was working with an IPython qtconsole embedded in some C++ code, which used to work. But after a recent update, I cannot exit the console/quit my app using exit/exit()/quit/quit().
The problem seems to have been introduced in
ipykernel==4.7
, downgrading toipykernel==4.6.1
solves the problem. Here's a minimal test example:The error returned is the following:
The output of
python -c "import IPython; print(IPython.sys_info())"
on my machine is:The pip versions of the (relevant) packages on my system are:
And I'm using the system package for PySide, version 1.2.2
The text was updated successfully, but these errors were encountered: