Embed python in blog post
Published:
Example of an inline figure
We model
\begin{align} x_i &= i & 0 \leq i \leq 9\\ y_i &= x_i + \epsilon_i, & \epsilon_i \sim \mathcal{N}(0, i) \end{align}import numpy as np import matplotlib.pyplot as plt import seaborn as sns x = np.arange(10) y = x + np.random.normal(size=10) * np.sqrt(x) plt.plot(x, y, '.') plt.plot(x, x, '-') plt.savefig('../images/test_python.png') return '../images/test_python.png'
To be fixed And make sure to toggle the display of inline images C-c C-x C-v
.
Display a table
Example of a table
x | y |
---|---|
1 | a |
2 | b |
3 | c |