May someone tell me how to set again that colorful output from jupyter notebook without using rich.print
? I use VSCode.
I've got this feature with kedro=0.18.4 and lost with kedro=0.18.5. Kedro requires rich as an dependency.
I think it was a rich
's bug, because after update dependencies in my project I lost this feature. ;)
Previous similar topic with this bug: VSCode/Jupyter interfering with Rich (log formatting library for Python) and I see an </> for each output
I want to set it again, but I cannot. I tried
pip install rich[jupyter]
from rich import pretty
from rich import traceback
pretty.install(indent_guides=True, expand_all=True)
traceback.install(show_locals=True, indent_guides=True)
%load_ext rich
but I have still common white output. I can force it with
from rich import pretty
pretty.Pretty(float)
returns
or
from rich import pretty
pretty.pprint(float)
returns
or
from rich import print
print(int)
returns
but I cannot do it with common jupyter output without run print
function like before update.