AnswerDotAI / AnswerDotAI/execnb
What is equivalent to `InteractiveShell.kernel.comm_manager.register_target('file_request', target_func)`?
- 主要语言
- Jupyter Notebook
- 星标
- 138
- 派生
- 12
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 1
描述
Hi,
I encountered this error while using an [interactive tool](https://github.com/igvteam/igv-notebook/blob/b81c898f726bebad1306a1dc09d4009e23c68417/igv_notebook/file_reader.py#L61C60-L61C72) 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.
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 igv_notebook/file_reader.py 第 61 行开始,跟踪 CaptureShell 如何处理对 register_target 的调用。将 CaptureShell 可用的执行路径与 InteractiveShell 以及链接的 Colab 回调行为进行比较。完成的标准是确定受支持的等效实现或限制,并且 file_request 流程不再依赖缺失的 kernel 属性。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100