-
Notifications
You must be signed in to change notification settings - Fork 389
Description
Bug description
while following the guide from: https://quarto.org/docs/computations/render-scripts.html#syntax
The rendered document is not executing included python script.
The output looks like in the screenshot attached.

Steps to reproduce
Python Script file (script.py)
# %% [markdown]
# Test external script
# %%
#| echo: true
x = 35
print (x)
# %% [markdown]
"""
## Exploring the data
...
"""Quarto document (document.qmd)
---
title: "Test-document"
author: "XX YY"
execute:
enabled: true
echo: true
python: true
---
{{< include script.py >}}
I have fresh quarto install: 1.5.55
Expected behavior
Expected nice quarto document, with python code executed.
Actual behavior
Rendered document contains markdown and python syntax, python code is not executed.
Your environment
- IDE: VSCode (but I don't think it matters)
- Quarto version 1.5.55
Quarto check output
PS C:\Users---------------> quarto check
Quarto 1.5.55
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.2.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.5.55
Path: C:\Users----------------------------
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Tex: (not detected)
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.11.9 (Conda)
Path: C:/Users/----------------------------
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with conda install jupyter
[>] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/