[英]Latex in Jupyter Notebook iPython
我在 jupyter notebook 中有一個 python 項目,我想用 latex 顯示最終的 output。
x = 5
print("The number you have inputted is ", complex(x, y), " ^ 1/", n, sep = '')
我希望使用 latex 對其進行格式化:
我閱讀了一堆論壇,但分數不適用於 2digit 數字
n=10
from IPython.display import display, Markdown
display(Markdown(rf"""$ { complex(x, y) } ^ \frac{1}{n} $"""))
我能得到的最好的:
任何建議都會非常有幫助:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.