问题
Output of Python code cell seems to be not processed by Markdown.
For example in Python code cell there could be something like that:
print "**bold**"
And the output is: **bold** instead of bold. Is there a way to make it really bold?
回答1:
To get markdown formatted output, you can use the Markdown object of the display machinery. A print-like function could thus look like
from IPython.display import Markdown, display
def printmd(string):
display(Markdown(string))
printmd('**bold**')
来源:https://stackoverflow.com/questions/32026727/format-output-of-code-cell-with-markdown