Closed
Description
Description
When running this extension with the latest stable JupyterLab, Jupyter Client, and Jupyter Server, I see a warning every time the kernel is polled for metrics:
[W 2023-03-13 10:53:48.052 ServerApp] Could not destroy zmq context for <jupyter_client.asynchronous.client.AsyncKernelClient object at 0x7f7e08e79640>
Looks like we need to close the opened ZMQ channels in the AsyncKernelClient object so the ZMQContext can properly teardown.
Reproduce
- Install JupyterLab and this extension
- Open JupyterLab
- Open a notebook to start a kernel.
- Watch the terminal console.
- Multiple warnings will be printed.
Expected behavior
No warnings should be printed to the console.
Context
- Operating System and version: MacOS Version 12.5
- Browser and version: Chrome
- Jupyter Server version: 2.4.0
- JupyterLab version: 3.6.1
- Jupyter Client: 8.0.3