You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A stream's method isatty should return whether it is an 'interactive' stream. I think that means whether it is an interactive console.
Although qtconsole is an interactive stream their sys.stdout.isatty() returns False. This is because qtconsole uses ipykernel.iostream.OutStream as standard streams for sys.stdout and sys.stderr. This class inherits the method isatty() from io.TextIoBase which isn't supposed to be an interactive stream by default.
One of the current main developers of qtconsole told me:
Please open this issue in the ipykernel repo because we can't solve it here and a change as the one you're suggesting will also affect the Jupyter notebook and JupyterLab.
@real-yfprojects I don't have a strong opinion on whether the isatty() should be patched here, or in qtconsole, but I would like to see this addressed as well. It would solve problems with colored output in spyder (see Textualize/rich#1221 and the references there)
I was redirected from qtconsole. I posted this Issue over there.
A stream's method isatty should return whether it is an 'interactive' stream. I think that means whether it is an interactive console.
Although qtconsole is an interactive stream their
sys.stdout.isatty()
returnsFalse
. This is because qtconsole usesipykernel.iostream.OutStream
as standard streams forsys.stdout
andsys.stderr
. This class inherits the methodisatty()
fromio.TextIoBase
which isn't supposed to be an interactive stream by default.ipykernel/ipykernel/iostream.py
Line 276 in fda1156
One of the current main developers of
qtconsole
told me:This Issue relates to #268 .
The text was updated successfully, but these errors were encountered: