Load markdown file on a jupyter notebook cell

Question:

I know about the existance of the %load markdown_file.md magic command but this will load the content of the file on the first run of the cell.
If the file changes, the cell won’t be updated.
Does anyone know if it is possible to avoid this problem and load the content of the file each time the cell runs?

Asked By: Paolo Squadrito

||

Answers:

If you want to load a markdown every time a cell is run, you can do:

from IPython.display import Markdown, display

display(Markdown("markdown_file.md"))
Answered By: runDOSrun