I think code here is trying to catch wrong exception: https://github.com/ipython/ipykernel/blob/3c6037fbed4431a6997414918bfc6a65b13070e7/ipykernel/kernelbase.py#L442-L445 My guess is that `tornado.queues.QueueEmpty` was the intended exception, and not `asyncio.QueueEmpty`