Skip to content

utils

show_markdown(markdown, flush=False)

Render any Markdown Text in ipython

Source code in src/lmflux/graphs/utils.py
 9
10
11
12
13
14
15
16
def show_markdown(markdown, flush=False):
    """
    Render any Markdown Text in ipython
    """
    if not IPYTHON_AVAILABLE:
        print(markdown, flush=flush)
    clear_output(True)
    display(Markdown(markdown))