Skip to content

Commit

Permalink
Syntax in test
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Feb 13, 2024
1 parent e461168 commit 8b0cebd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/qpyodide-internal-cell.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ 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)
x = [1, 5, 3, -2]
y = [-5, 8, 9, 4]
```

## Output
Expand All @@ -39,11 +39,11 @@ Hidden cell that retrieves previously set `x` and `y` vector values and displays

```{pyodide-python}
#| context: output
cat("x: ")
print(x)
import matplotlib.pyplot as plt
cat("y: ")
print(y)
print(f"x: {x}")
plot(x, y)
print(f"y: {y}")
plt.plot(x, y)
```

0 comments on commit 8b0cebd

Please sign in to comment.