We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 059c505 commit 3ebc976Copy full SHA for 3ebc976
nbclient/client.py
@@ -388,6 +388,9 @@ async def async_start_new_kernel_client(self, **kwargs):
388
except AttributeError:
389
raise AttributeError('self.km={} has no client() or get_kernel() method, '
390
'what is this?'.format(self.km))
391
+ # since self.km is a MultiKernelManager, it might not be async
392
+ # so let's ensure the client is async
393
+ km.client_class = 'jupyter_client.asynchronous.AsyncKernelClient'
394
395
self.kc = km.client()
396
await ensure_async(self.kc.start_channels())
0 commit comments