Skip to content

Commit

Permalink
Render quarto file into html
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleDolezal committed Mar 24, 2024
1 parent 6812363 commit 2ef1d5f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/create-quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ jobs:
ln -s ~/opt/quarto-1.4.551/bin/quarto ~/bin/quarto
( echo ""; echo 'export PATH=$PATH:~/bin\n' ; echo "" ) >> ~/.profile
source ~/.profile
quarto check
quarto check
cd .github/workflows
quarto render quarto_test.qmd
27 changes: 27 additions & 0 deletions .github/workflows/quarto_test.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: "Quarto Basics"
format:
html:
code-fold: true
jupyter: python3
---

For a demonstration of a line plot on a polar axis, see @fig-polar.

```{python}
#| label: fig-polar
#| fig-cap: "A line plot on a polar axis"
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()
```

0 comments on commit 2ef1d5f

Please sign in to comment.