This Is A Quarto Blog


Demetri Pananos


June 22, 2022

This is a quarto blog.

That means I can write code in either R or python directly in the blog post and have it execute. So when you see something like

import matplotlib.pyplot as plt
import numpy as np

t = np.linspace(0, 1)
plt.plot(t, np.sin(2*np.pi*t), color='k')
plt.plot(t, np.cos(2*np.pi*t), color='red')
plt.title("Here is a plot")

Figure 1: Whoa, check it out!

That is the code that is actually executed. That means the blog is more reproducible and will have fewer errors. It also means you can go directly to the repo for my blog and clone the post to start tinkering. No more linking to other gitrepos, no more copying and pasting code with errors.

Did I mention I can write both R and python?

t = seq(0, 1, 0.01)
plot(t, sin(2*pi*t), main='Here is another plot!', xlab='', ylab='', type='l')
lines(t, cos(2*pi*t), col='red')

Figure 2: Whoa, check it out again!

I can also reference figures (like Figure 2 and Figure 1)