execnb icon indicating copy to clipboard operation
execnb copied to clipboard

What is equivalent to `InteractiveShell.kernel.comm_manager.register_target('file_request', target_func)`?

Open rraadd88 opened this issue 2 years ago • 0 comments

Hi, I encountered this error while using an interactive tool through CaptureShell:

---> 61 get_ipython().kernel.comm_manager.register_target('file_request', target_func)
AttributeError: 'CaptureShell' object has no attribute 'kernel'

Is there any equivalent to InteractiveShell's InteractiveShell.kernel.comm_manager.register_target('file_request', target_func) or colab notebook's google.colab.output.register_callback('ReadFile', callback) attributes that I could use to resolve the error? Thanks.

rraadd88 avatar Jan 15 '24 22:01 rraadd88