Created
October 3, 2017 06:17
-
-
Save anonymous/5eee7b48ea86f6ef8edc24c276df9d1a to your computer and use it in GitHub Desktop.
matrix.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>MathJax TeX Test Page</title> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); | |
</script> | |
<script type="text/javascript" | |
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | |
</script> | |
</head> | |
<body> | |
<font size=20> | |
$$\begin{pmatrix}a & b\\\ c & d\end{pmatrix}$$ | |
</font> | |
</body> | |
</html> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ui | |
import os | |
file_path = os.path.abspath('matrix.html') | |
v = ui.WebView(frame=(0,0,400,400)) | |
v.load_url('File://'+file_path) | |
v.present('sheet') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment