TODO: Add a short description of your extension.
quarto add whitphx/quarto-stlite
This will install the extension under the _extensions
subdirectory.
If you're using version control, you will want to check in this directory.
Put this in the header of your document, or in the _quarto.yml
file:
filters:
- whitphx/stlite
Then you can put the code for an stlite (Streamlit) application in a code block marked with {stlite-python}
.
---
title: stlite in Quarto example
format: html
filters:
- whitphx/stlite
---
This is an stlite application embedded in a Quarto doc.
```{stlite-python}
import streamlit as st
st.title("Hello Quarto!")
```
Here is the source code for a minimal example: example.qmd.