Skip to content

coexistence of R and Python gives me inconsistent table renderings #3457

@aborruso

Description

@aborruso

Bug description

Hi,
I have really strange table rendering problems.

My code is the one below. If I render it, the python ouput table is printed as plain text

image

If I change {r} in {{r}}, and render again the file, I have the correct rendering of the python ouput table

image

It seems to me that something does not work properly, but it seems to me that the code has no errors.

I'm using quarto 1.3.21, in debian 11 (inside WSL2).

Thank you

---
title: "tables test"
format: html
---

```{python}
import pandas as pd

df = pd.read_csv("input.csv")
df
```


```{r}
library(tidyverse)
data <- read_csv('input.csv')
knitr::kable(data)
```
year,i,v
2016,F,0.9599716561118586
2016,G,0.0382418519682473
2016,C,0.0012657864805693667
2016,W,1.2161279236855405e-05
2016,S,4.5402109150926846e-05

Checklist

  • 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.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttablesIssues with Tables including the gt integrationupstreamBug is in upstream library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions