英文:
jupyter notebook markdown: add results of math operation in markdown cell
问题
如何在Markdown单元格中添加数学运算的打印结果?我尝试了这个但不起作用:
print(32750-25797) patients dropped in step 2
我得到了以下输出:
print(32750-25797) patients dropped in step 2
但我想要这个输出:
6953 patients dropped in step 2
英文:
How can I add the printed results of math operation in the markdown cell? I tried this but didn't work:
`print(32750-25797)` patients dropped in step 2
I get
print(32750-25797) patients dropped in step 2
But I want this output:
6953 patients dropped in step 2
答案1
得分: 2
你必须使用Jupyter Notebook Extensions的Python Markdown扩展。
英文:
You have to use the Python Markdown extension of the Jupyter Notebook Extensions.
答案2
得分: 0
Markdowns 用于编写数学方程式。它们不解决数学方程式,只将其显示为注释。
英文:
Markdowns are used to write mathematical equations. they don't solve mathematical equations. They only display it as a comment.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论