1 + 12
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.
You can embed executable code like this:
1 + 12
You can add options to executable code like this
4
The echo: false option disables the printing of code (only output is displayed).
See Figure 1 for an example of rendering plots as figures:
import numpy as np
import matplotlib.pyplot as plt
r = np.arange(0, 2, 0.01)
theta = 2 * np.pi * r
fig, ax = plt.subplots(subplot_kw={'projection': 'polar'})
ax.plot(theta, r)
ax.set_rticks([0.5, 1, 1.5, 2])
ax.grid(True)
plt.show()Note that we included the cell option fold: true to hide the code by default (click the Code button to show it).