-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../_extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
project: | ||
type: website | ||
|
||
website: | ||
title: "Test Suite for quarto-pyodide" | ||
search: true | ||
reader-mode: true | ||
sidebar: | ||
style: "floating" | ||
contents: | ||
- href: index.qmd | ||
text: Home | ||
- href: ../../ | ||
text: Main Website | ||
- section: "Tests" | ||
contents: | ||
- auto: "*test*.qmd" | ||
|
||
|
||
page-footer: | ||
left: "Test suite for quarto-webr." | ||
right: | ||
- icon: github | ||
href: https://github.com/coatless-quarto/pyodide | ||
|
||
# Set the language that should be used for Quarto websites | ||
# https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/language | ||
# lang: en | ||
|
||
# Attach pyodide to every page | ||
filters: | ||
- pyodide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: "quarto-pyodide Test Website" | ||
subtitle: "Extension Test Suite" | ||
--- | ||
|
||
# Welcome | ||
|
||
Welcome to the test suite website for the [`quarto-pyodide`](https://github.com/coatless-quarto/pyodide). This website is meant to examine how different features of the extension are working or not working across different browsers. | ||
|
||
```{webr-r} | ||
print("Welcome to behind the scenes of quarto-pyodide!") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
title: "Test: Cell Context Options" | ||
format: html | ||
engine: knitr | ||
filters: | ||
- pyodide | ||
--- | ||
|
||
Test page for verifying cell context options set explicitly with `context`. | ||
|
||
## Interactive | ||
|
||
### Static | ||
```{pyodide-python} | ||
#| context: interactive | ||
1 + 1 | ||
``` | ||
|
||
### Autorun | ||
|
||
```{pyodide-python} | ||
#| context: interactive | ||
#| autorun: true | ||
1 + 1 | ||
``` | ||
|
||
## Setup | ||
|
||
Hidden cell that sets `x` and `y` vector values. | ||
|
||
```{pyodide-python} | ||
#| context: setup | ||
x = c(1, 5, 3, -2) | ||
y = c(-5, 8, 9, 4) | ||
``` | ||
|
||
## Output | ||
|
||
Hidden cell that retrieves previously set `x` and `y` vector values and displays the data. | ||
|
||
```{pyodide-python} | ||
#| context: output | ||
cat("x: ") | ||
print(x) | ||
cat("y: ") | ||
print(y) | ||
plot(x, y) | ||
``` |