Math mode

Math mode works in the Markdown part of the notebook, both inline mode $a^2 + b^2 = c^2$ and display mode

\[i \hbar \frac{\partial}{\partial t}\Psi(\mathbf{r},t) = \hat H \Psi(\mathbf{r},t)\]

Matplotlib plot

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(-np.pi, np.pi, 0.01)
fig, ax = plt.subplots(1, 2, figsize=(12, 3))
ax = ax.flatten()

ax[0].plot(x, np.sin(x))
ax[1].plot(x, np.cos(x))

plt.show()

png

Code with output

for word in ["one", "two", "three"]:
    print(word)
one
two
three

Some more text.