JuliaPy / JuliaPy/PythonCall.jl

IPython redirect stdout

Ouverte
#84 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Julia
Étoiles
1.1k
Forks
86
Merge moyen
1 j 22 h
PR mergées (30 j)
3

Description

We used to set `Base.stdout` to `PyIO(sys.stdout)` but this causes bugs so is removed.

Instead copy the IJulia approach: use `pipe = redirect_stdout()` and have an async task watch the pipe for output and write it to `sys.stdout`.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Locate the code that sets Base.stdout to PyIO(sys.stdout), then inspect how redirect_stdout() and the IJulia approach handle the pipe. Trace how an async task could observe pipe output and forward it to sys.stdout. Done means IPython output is redirected without the bugs caused by the previous Base.stdout assignment.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
julia, python
Domaine
backend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.