JuliaPy / JuliaPy/PythonCall.jl
IPython redirect stdout
- Vorherrschende Sprache
- Julia
- Sterne
- 1.1k
- Forks
- 86
- Ø Merge
- 1 T. 22 Std.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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`.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- julia, python
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100