Skip to content

Issue with exception handling in the IPython shell #367

@rayosborn

Description

@rayosborn

I am raising this issue to alert users to a problem with recent versions of the ipykernel, which causes exceptions in the NeXpy IPython shell to hang. This resulted from a change to the message-based kernel code without a concomitant change being made to the in-process kernel that NeXpy uses (see this PR). The fix to the ipykernel package has now been merged, so the problem should be resolved after its next release.

The symptom is that, when you type something in the shell that raises an exception, the shell hangs with a message like this one:

/.../ipykernel/ipykernel/kernelbase.py:757: RuntimeWarning: coroutine 'InProcessKernel._abort_queues' was never awaitedIn [2]: 
  self._abort_queues()

If you experience this issue, a temporary fix is to install ipykernel v6.8.0.

$ conda install ipykernel=6.8.0

or

$ pip install -I ipykernel==6.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions