import pyolite
pyolite.__version__
from IPython.display import Markdown, HTML, JSON, Latex
print('Before display')
s = '<h1>HTML Title</h1>'
display(HTML(s))
print('After display')
Markdown('''
# Title
**in bold**
~~Strikthrough~~
''')
Latex(r"""\begin{eqnarray}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0
\end{eqnarray}""")
Basic static plotting (temp patch)
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 10, 1000)
plt.plot(x, np.sin(x));
plt.show()
import pandas as pd
import numpy as np
from string import ascii_uppercase as letters
df = pd.DataFrame(np.random.randint(0, 100, size=(100, len(letters))), columns=list(letters))
df
df
import json
from js import fetch
res = await fetch('https://httpbin.org/get')
text = await res.text()
obj = json.loads(text)
JSON(obj)
from sympy import Integral, sqrt, symbols, init_printing
init_printing()
x = symbols('x')
Integral(sqrt(1 / x), x)