-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Labels
area: kernelsIssues related to Jupyter kernels and LSP serversIssues related to Jupyter kernels and LSP serversbugSomething isn't workingSomething isn't workinglang: python
Milestone
Description
The Python kernel's control thread may hang during shutdowns. See this Playwright report for example.
The last few logs before the hang:
[Python] [PositronIPKernelApp] Control received: {'header': {'msg_id': 'defdcdb49e', 'msg_type': 'shutdown_request', 'session': 'python-0d121134', 'username': 'runner', 'date': datetime.datetime(2025, 4, 4, 21, 16, 46, 731000, tzinfo=tzutc()), 'version': '5.3'}, 'msg_id': 'defdcdb49e', 'msg_type': 'shutdown_request', 'parent_header': {}, 'metadata': {}, 'content': {'restart': False}, 'buffers': []}
[Python] [positron.positron_ipkernel] Shutting down the kernel
[Python] [positron.help] Stopping pydoc server thread
[Python] [positron.help] Pydoc server thread stopped
[Python] [PositronIPKernelApp] Kernel has no children.
[Python] [PositronIPKernelApp] {'header': {'msg_id': '4ff340cc-0dac95f225aa852099896c76_155264_59', 'msg_type': 'shutdown_reply', 'username': 'runner', 'session': '4ff340cc-0dac95f225aa852099896c76', 'date': datetime.datetime(2025, 4, 4, 21, 16, 47, 7045, tzinfo=datetime.timezone.utc), 'version': '5.3'}, 'msg_id': '4ff340cc-0dac95f225aa852099896c76_155264_59', 'msg_type': 'shutdown_reply', 'parent_header': {'msg_id': 'defdcdb49e', 'msg_type': 'shutdown_request', 'session': 'python-0d121134', 'username': 'runner', 'date': datetime.datetime(2025, 4, 4, 21, 16, 46, 731000, tzinfo=tzutc()), 'version': '5.3'}, 'content': {'status': 'ok', 'restart': False}, 'metadata': {}, 'tracker': <zmq.sugar.tracker.MessageTracker object at 0x7fe8024fbd90>}
[Python] [PositronIPKernelApp] Stopping control ioloop
[Python] [PositronIPKernelApp] Stopping shell ioloop
[Python] [asyncio] Close <_UnixSelectorEventLoop running=False closed=False debug=True>
[Python] [PositronIPKernelApp] Cleaning up sockets
[Python] [PositronIPKernelApp] Closing heartbeat channel
[Python] [PositronIPKernelApp] Closing iopub channel
[Python] [PositronIPKernelApp] Closing control thread
Metadata
Metadata
Assignees
Labels
area: kernelsIssues related to Jupyter kernels and LSP serversIssues related to Jupyter kernels and LSP serversbugSomething isn't workingSomething isn't workinglang: python