Hi,
I have been using IPython QtConsole and the IPython Notebook quite a lot, and I love them both. After transition to Jupyter QtConsole and Jupyter Notebook, I have observed that some rich text display stopped working in the QtConsole (It still works in the Notebook). To clarify, there is a small bit of code:
import IPython.core.display as display
class Prettify(object):
"""prettify using IPython display()
"""
def __init__(self, text):
self.text = text
def _repr_html_(self):
return ("<font color='red'><b>{text}</font></b> is great!".format(text=self.text,))
def __repr__(self):
return "%s" % (self.text)
display.display(Prettify("IPython"))
When I execute the above code from a Jupyter notebook, the output looks like so:
However, executing the same code in the Jupyter QtConsole, the output looks like the following:
Please, note that I have used the above pattern in the past that resulted in identical rich text output in both notebook and QtConsole.
So, the question is that what has changed in Jupyter QtConsole w.r.t. the display module? And what can I do to produce rich text display in Jupyter QtConsole?
Thank you very much,
Best regards,
Indranil.