Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whitphx/quarto-stlite
https://github.com/whitphx/quarto-stlite
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/whitphx/quarto-stlite
- Owner: whitphx
- Created: 2023-07-14T17:37:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-27T10:19:58.000Z (over 1 year ago)
- Last Synced: 2024-10-11T09:30:01.182Z (2 months ago)
- Language: Lua
- Size: 10.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stlite Extension For Quarto
_TODO_: Add a short description of your extension.
## Installing
```bash
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.## Using
Put this in the header of your document, or in the `_quarto.yml` file:
```yaml
filters:
- whitphx/stlite
```Then you can put the code for an stlite (Streamlit) application in a code block marked with `{stlite-python}`.
````markdown
---
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 stst.title("Hello Quarto!")
```
````## Example
Here is the source code for a minimal example: [example.qmd](example.qmd).