spyder: Output of C extensions is not shown in IPython console
Description of your problem
The output of C extensions that print to stdout is not shown in the ipython console. For Spyder 2 the output was shown in the kernel window.
A minimal example:
import oapackage
T=oapackage.conference_transformation_t()
T.show()
When executed from the command line a message is shown, in the Spyder 3 ipython console no output is shown at all.
Note: oapackage can by installed from pypi: https://pypi.python.org/pypi/OApackage. The output desired is generated by C++ code wrapped using SWIG.
Note: the same problem is there when the code is executed in an ipython notebook.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 19 (14 by maintainers)
Any update on this issue? I’d like to get tensorflow logs in my console…
It can’t be toggled at runtime (except with some private API calls), but you can disable it globally:
Sorry, we haven’t worked on this one yet. We could work on it after we release 3.3 though.
There isn’t a config setting, but you can use Min’s package wurlitzer in the kernel.
Once we implement the kernel nanny proposal, we’ll be able to capture this kind of output automatically.