Close all the websocket connections to the kernels. It doesn't shutdown the kernels. :return:
(self)
| 177 | return [kernel["id"] for kernel in response.json()] |
| 178 | |
| 179 | def close(self): |
| 180 | """ |
| 181 | Close all the websocket connections to the kernels. It doesn't shutdown the kernels. |
| 182 | :return: |
| 183 | """ |
| 184 | for ws in self._connected_kernels.values(): |
| 185 | ws.close() |
| 186 | |
| 187 | def _connect_to_kernel_ws(self, kernel_id: str) -> None: |
| 188 | ws = JupyterKernelWebSocket( |
no outgoing calls
no test coverage detected