print the output of my code in Markdown using variable (not the value)

Mats Wichmann mats at python.org
Sat Aug 15 14:58:23 EDT 2020


On 8/15/20 11:00 AM, Michio Suginoo wrote:
> Hi,
> 
> I am still at an early stage of my personal Python evolution.
> 
> I am coding Python3 in Jupyter Notebook (Anaconda environment).
> 
> I want to print the output of my code in a 'markdown'.
> I want to use the variable in the 'markdown' rather than typing the output.
> This would save my time every time the value changes for whatever the
> reason might be.
> 
> Please advise me how to do it.

Just a gentle suggestion... show a sample of what you're trying to
achieve, and if possible some code that you've tried.

This might be a place to look:

https://ipython.readthedocs.io/en/stable/api/generated/IPython.display.html#IPython.display.Markdown


More information about the Python-list mailing list