### Bug description

Computationally generated tables from python do not display properly in HTML.

Minimal qmd file:
````md
---
title: "Untitled"
---

## Quarto

```{python}
#| label: tbl-planets
#| tbl-cap: Planets

from IPython.display import Markdown
from tabulate import tabulate
table = [["Sun",696000,1989100000],
         ["Earth",6371,5973.6],
         ["Moon",1737,73.5],
         ["Mars",3390,641.85]]
Markdown(tabulate(
  table, 
  headers=["Planet","R (km)", "mass (x 10^29 kg)"],
  tablefmt="pipe"
))
```
````

Produces this output: 
![image](https://user-images.githubusercontent.com/2127125/180488133-8a071947-11f7-44dc-9bcc-c1b74800d979.png)


Job output:
```bash

/bin/bash: /home/susan/.local/share/r-miniconda/envs/r-reticulate/lib/libtinfo.so.6: no version information available (required by /bin/bash)
/bin/bash: /home/susan/.local/share/r-miniconda/envs/r-reticulate/lib/libtinfo.so.6: no version information available (required by /bin/bash)


processing file: test.qmd
  |.......................                                               |  33%
  ordinary text without R code

  |...............................................                       |  67%
label: tbl-planets (with options) 
List of 3
 $ engine             : chr "python"
 $ original.params.src: chr "python"
 $ chunk.echo         : logi FALSE

  |......................................................................| 100%
  ordinary text without R code


output file: test.knit.md

pandoc 
  to: html
  output-file: test.html
  standalone: true
  section-divs: true
  html-math-method: mathjax
  wrap: none
  default-image-extension: png
  
metadata
  document-css: false
  link-citations: true
  date-format: long
  lang: en
  title: Untitled
  
Output created: test.html

Watching files for changes
Browse at http://localhost:5844/
```

Rstudio version information: First tried on 
```
RStudio
2022.02.3 Build 492
© 2009-2022 RStudio, PBC
"Prairie Trillium" Release (1db809b8, 2022-05-20) for Ubuntu Bionic
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
```
but also holds when I upgrade to the latest preview release:
```
RStudio
2022.07.0 Build 548
© 2009-2022 RStudio, PBC
"Spotted Wakerobin" Release (34ea3031, 2022-07-06) for Ubuntu Bionic
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
```

OS information: Ubuntu 21.10


### `quarto check` Output

```bash
(base) susan@Ralph:~/Projects/test$ quarto check

[✓] Checking Quarto installation......OK
      Version: 1.0.35
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.8.13 (Conda)
      Path: /home/susan/.local/share/r-miniconda/envs/r-reticulate/bin/python
      Jupyter: 4.11.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /usr/lib/R
      LibPaths:
        - /home/susan/R/x86_64-pc-linux-gnu-library/4.2
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      rmarkdown: 2.14

[✓] Checking Knitr engine render......OK
```

### `quarto tools check` Output

```bash
(base) susan@Ralph:~/Projects/test$ quarto tools check
[✓] Inspecting tools

Tool         Status            Installed     Latest  
chromium     Not installed     ---           869685  
tinytex      Not installed     ---           v2022.07
```

### Checklist

- [x] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included 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] documented the quarto version you're running, by pasting the output from running `quarto check` in the "Quarto Check Output" text area?
- [X] documented the version of the quarto tools you're running, by providing the output from running `quarto tools check` in the "Quarto Tools Check Output" text area?
- [X] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
cscheid
2022-07-22T17:04:47Z
srvanderplas
enhancement
Future
closed
Teach reticulate to understand IPython methods
https://github.com/quarto-dev/quarto-cli/issues/1501