### Bug description

Python plots from python chunk are not shown in a quarto-document with knitr engine. However, with the jupytr engine it works.

### Steps to reproduce

`````qmd
---
title: 'Plots not showing'
format: html
# engine: jupytr
engine: knitr

---

```{python}
import statsmodels.api as sm
import pandas
df = sm.datasets.get_rdataset("Guerry", "HistData").data

fm = sm.formula.ols('Lottery ~ Literacy + Wealth + C(Region)', data = df).fit()
print(fm.summary())

fig = sm.graphics.influence_plot(fm, criterion="cooks")
fig.show()
```


### Expected behavior

The plot should be included in the rendered html file

### Actual behavior

The plot is not shown

### Your environment

- IDE RStudio: Version 2023.06.0+421 (2023.06.0+421)
- MacOS 12.6.2

### Quarto check output

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.433
      Path: /Applications/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.10 (Conda)
      Path: /Users/seb/Library/r-miniconda-arm64/bin/python
      Jupyter: 5.3.0
      Kernels: julia-1.8, python3

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

[✓] Checking R installation...........OK
      Version: 4.3.0
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
      knitr: 1.43
      rmarkdown: 2.22

[✓] Checking Knitr engine render......OK
2023-07-04T11:25:34Z
sebastian-gerdes
bug third-party
closed
Python plots with knitr engine not showing
https://github.com/quarto-dev/quarto-cli/issues/6101