'Keep IPython markdown in jupyter notebook after closing it

In jupyter notebook, I am calling a function of a library that does IPython.display.display(IPython.display.Markdown(...)) (see How to programmatically generate markdown output in Jupyter notebooks?). It successfully displays the desired Markdown.

However, if I close the notebook tab, and open it again, the output is replaced with <IPython.core.display.Markdown object>.

Is there a way to avoid this automatic change, and keep the desired Markdown?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source