Использованная команда:
< pre class="lang-bash Prettyprint-override">
Код: Выделить всё
quarto render test.qmd -P foo:5 --output test_cmd_out.html
Код: Выделить всё
test.qmd
Код: Выделить всё
---
title: "Test File"
format: html
html:
embed-resources: true
execute:
echo: False
jupyter: python3
---
# Title
Print this in report
```{python}
foo
```
---
Код: Выделить всё
Starting python3 kernel...Done
Executing 'test.quarto_ipynb'
Cell 1/1: ''...ERROR:
An error occurred while executing the following cell:
------------------
foo
------------------
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In[1], line 1
----> 1 foo
NameError: name 'foo' is not defined
Не уверен, что не так, если Я смотрю их документацию.
Подробнее здесь: https://stackoverflow.com/questions/792 ... -rendering