### Bug description

Hi all,

I am trying to write a presentation using Reveal.js that mix R and python code. I think it is possible to mix code in Quarto documents, I do not understand what's going on here.

It seems not possible, or I am missing something. Here is a simple example of qmd file that does not compile.

````md
---
title: "test"
format: revealjs
---

```{r}
#| echo: true
hist(rnorm(1000))
```

---

```{python}
#| echo: true
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()
```
````

which gives an error concerning TCL:

> Error in py_call_impl(callable, dots$args, dots$keywords) : 
  _tkinter.TclError: Can't find a usable init.tcl in the following directories:  [...]

I'm using the latest Quarto (1.2.267), under Windows 10 and RStudio 2022.07.1 Build 554. The python environment is created with only the latest versions of jupyterlab and matplotlib.

Thanks for you time !

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-11-08T15:32:15Z
NRaillard
bug needs-repro
closed
Mix R and python code in Quarto presentation
https://github.com/quarto-dev/quarto-cli/issues/3244