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 908f81f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/create-quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ 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
pip install nbformat nbclient
pip install jupyter matplotlib plotly
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 908f81f

Please sign in to comment.