You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncdef_async_is_alive(self) ->bool:
"""Is the kernel process still running?"""from .managerimportKernelManagerifisinstance(self.parent, KernelManager):
# This KernelClient was created by a KernelManager,# we can ask the parent KernelManager:returnawaitself.parent._async_is_alive()
ifself._hb_channelisnotNone:
# We don't have access to the KernelManager,# so we use the heartbeat.returnself._hb_channel.is_beating()
# no heartbeat and not local, we can't tell if it's running,# so naively return TruereturnTrue
_async_is_alive
calls out to_async_is_alive
in the kernelmanager.https://github.com/jupyter/jupyter_client/blob/main/jupyter_client/client.py#L415
However when using the
GatewayKernelManager
from jupyter_server this assertion fails https://github.com/jupyter/jupyter_client/blob/main/jupyter_client/manager.py#L696, while it has overridden theis_alive
methodSo I think _async_is_alive should be made public and the
GatewayKernelManager
should also be adapted to override this method.What are your thoughts?
The text was updated successfully, but these errors were encountered: