Skip to content

Commit 8b0cebd

Browse files
committed
Syntax in test
1 parent e461168 commit 8b0cebd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/qpyodide-internal-cell.qmd

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Hidden cell that sets `x` and `y` vector values.
2929

3030
```{pyodide-python}
3131
#| context: setup
32-
x = c(1, 5, 3, -2)
33-
y = c(-5, 8, 9, 4)
32+
x = [1, 5, 3, -2]
33+
y = [-5, 8, 9, 4]
3434
```
3535

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

4040
```{pyodide-python}
4141
#| context: output
42-
cat("x: ")
43-
print(x)
42+
import matplotlib.pyplot as plt
4443
45-
cat("y: ")
46-
print(y)
44+
print(f"x: {x}")
4745
48-
plot(x, y)
46+
print(f"y: {y}")
47+
48+
plt.plot(x, y)
4949
```

0 commit comments

Comments
 (0)