Open tzxiong opened 4 years ago
Basically we have to intercept Python's stdout and redirect it to Julia's stdout
in order for this to be captured in the notebook. Should be possible.
Adding a "+1" to this issue ... would be helpful if this worked. The Python QuTip package prints out useful stuff that I can't see with PyCall.jl in a Jupyter notebook. Thanks!
Looks like it is sufficient to do:
pyimport("sys")."stdout" = PyTextIO(stdout)
pyimport("sys")."stderr" = PyTextIO(stderr)
I didn't realize it would be that simple! Thanks very much!!
Hi,
I found that the code mentioned in the title:
cannot produce the output (nothing has been produced) when running a Julia console or an interactive notebook in the Jupyter Lab.
Any way to solve this?
Thanks, Tianzhu =--==-=