I'm trying to get text to display as bold, or in colors, or possibly in italics, in ipython's qtconsole.
I found this link: How do I print bold text in Python?, and used the first and second answers, but in qtconsole, only the underlining option works.
I try:
print '\033[1m' + 'Hello World!' + '\033[0m'
And get:
Hello World!
(No boldface). The colors don't work either. But:
print '\033[4m' + 'Hello World!' + '\033[0m'
And get:
Hello World!
With underlining.
This is only in the qtconsole. Running ipython just in the terminal, it works to do boldface and color in this way.
There were other options suggested in that link and another, Print in terminal with colors using Python?, linked from it, but they all seem more complex, and to use more elaborate packages, than seems necessary for what I want to do, which is simply to get qtconsole to display like the ordinary terminal does.
Does anyone know what's going on? Is this simply a limitation of the qtconsole?