Skip to content

Improve behavior of reticulate Quarto documents (R & Python together) #3865

@coatless

Description

@coatless

Positron Version:

Positron Version: 2024.06.1 (Universal) build 54
Code - OSS Version: 1.90.0
Commit: 5115c73
Date: 2024-07-03T03:51:33.756Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0

Steps to reproduce the issue:

  1. Create a new Quarto Document in a Positron session with both a Python environment & R environment activate
  2. Inside the Quarto document, place:
---
format: html
---

```{r}
plot(1:4, ylab = "some numbers")
```
```{python}
import matplotlib.pyplot as plt

plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()
```
  1. Run each chunk individually.
  2. The Python chunk creates a pop-up window under Ark.

What did you expect to happen?

I expected:

  1. the plot window to catch
  2. reticulate plugin to default to the active python environment without needing to setup a default python environment

Unexpected plot pop-up:

Screenshot of the Positron IDE with 2 different code blocks run one R and one Python causing a popup

Expected plot history:

Screenshot 2024-07-03 at 9 14 14 PM

Were there any error messages in the output or Developer Tools console?

N/A

Metadata

Metadata

Assignees

Labels

area: quartoIssues related to Quarto category.area: reticulateIssues related to the reticulate extensionbugSomething isn't workingsupport

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions