AnswerDotAI / AnswerDotAI/execnb
What is equivalent to `InteractiveShell.kernel.comm_manager.register_target('file_request', target_func)`?
- Langage dominant
- Jupyter Notebook
- Étoiles
- 138
- Forks
- 12
- Merge moyen
- 1 min
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par igv_notebook/file_reader.py à la ligne 61 et suivez la manière dont CaptureShell gère l’appel à register_target. Comparez le chemin d’exécution disponible de CaptureShell avec InteractiveShell et le comportement du callback Colab associé. Le travail est terminé lorsque l’équivalent pris en charge ou la limitation est identifié(e) et que le flux file_request ne dépend plus d’un attribut de kernel inexistant.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- jupyter
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100