Notebook上にLatexで書いた数式や画像を簡単に表示

from IPython.display import display, Markdown, Latex
display(Markdown('*some markdown* $\phi$'))
display(Latex('\phi'))

x = preprocess(download_image('https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iKIWgaiJUtss/v2/1000x-1.jpg'))
display_markdown('Original image:')
display(T.ToPILImage(mode='RGB')(x[0]))

Jupyter,Python

Posted by vastee