Hi,

I cannot render documents that have an error in a Python code block when using `error: true`.

````
$ cat Untitled.qmd
---
title: "Untitled"
format: html
jupyter: python3
---

```{python}
#| error: true

1 + 'a'
```

$ quarto -V
0.9.215

$ quarto render Untitled.qmd

Starting Jupyter kernel...Done

Executing 'Untitled.ipynb'
  Cell 1/1...ERROR: 

An error occurred while executing the following cell:
------------------
1 + 'a'
------------------

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 1 + 'a'

TypeError: unsupported operand type(s) for +: 'int' and 'str'
TypeError: unsupported operand type(s) for +: 'int' and 'str'
````

If I switch to R, then the code block option works.

Thanks,

Stephan
2022-04-08T23:20:37Z
stephan-koenig
closed
Code block option `error: true` not working in Python
https://github.com/quarto-dev/quarto-cli/issues/594