Open kevin-guimard-ext opened 1 year ago
Hey @kevin-guimard-ext, thanks for reporting. You said:
Do you know why some standard color escape codes don't work in Spyder?
Our support for ANSI codes is quite limited. It'd be great if you could help us to improve it, if you have time. It's implemented here:
https://github.com/jupyter/qtconsole/blob/master/qtconsole/ansi_code_processor.py
I'd be pretty unable to... So, it's a problem linked with QT, not with Spyder?
I'd be pretty unable to...
Sorry to hear that.
So, it's a problem linked with QT, not with Spyder?
We use the Qtconsole project to power our IPython console in Spyder. But we also maintain that project, so we could make the necessary changes to it to expand its ANSI codes support. The problem is we're understaffed, so we don't have time for it.
Ok I see. Let's put the issue in the backlog then.
Note: Related with https://github.com/jupyter/qtconsole/issues/273
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Do you know why some standard color escape codes don't work in Spyder?
For instance, using the yellow color code produces a red output:
What steps reproduce the problem?
print("\033[0;33m" + "test")
What is the expected output? What do you see instead?
I expect to see the word "test" written in yellow.
Versions
Dependencies