AnswerDotAI / AnswerDotAI/execnb

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

Abierto
#51 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
138
Forks
12
Merge medio
1 min
PR fusionados (30 d)
1

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza en igv_notebook/file_reader.py en la línea 61 y sigue cómo CaptureShell gestiona la llamada a register_target. Compara la ruta de ejecución disponible de CaptureShell con InteractiveShell y el comportamiento del callback de Colab enlazado. Se considera terminado cuando se identifica el equivalente compatible o la limitación, y el flujo de file_request ya no depende de un atributo de kernel inexistente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
jupyter
Área
tooling
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.