This code works in the Anaconda Prompt but in the jupyter notebook it prints normal text.
from colorama import init, Fore, Back, Style
init(convert=True)
print (Fore.RED + "My Text is Red")
Try following code that mod from this post.
from IPython.display import Markdown, display
import HTML
tags = ['<div>','<body>','<h1>']
for tag in tags:
tag = html.escape(tag)
display(Markdown((f'this is your tag: <text style=color:green>{tag}</text>')))