posit-dev / posit-dev/positron
Noticeable delay when running code line-by-line using remote SSH in quarto document
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
System details:
Positron and OS details:
Positron Version: 2025.03.0 (system setup) build 97
Code - OSS Version: 1.96.0
Commit: 5e22d6f831ad2a23b08e66de8111e693b30afaf1
Date: 2025-02-25T20:39:11.000Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 6.2.9200
Device
OS: Windows WSL2
Virtual Environment: conda
Interpreter details:
R 4.4.2 and Python 3.12.3
Describe the issue:
When I run code line-by-line in Quarto via remote SSH, there is a noticeable delay in the time it takes for the code to be sent to the console for execution, compared to when I run code line-by-line in Python or R files. I use a mix of Python and R in my code. There is no perceptible delay when running code line-by-line locally or when running code line-by-line in a script file on remote. I noticed that another issue also reported this problem, https://github.com/posit-dev/positron/issues/5079. I don't expect to compile the entire document with Quarto, but I do want to use Quarto as an attempt to mix Python and R coding.
Steps to reproduce the issue:
---
title: "Untitled"
format: html
---
## main
\`\`\`{python}
import pandas as pd
import io
df = pd.DataFrame({
'Name': ['Alice', 'Bob', 'Charlie'],
'Age': [25, 30, 35],
'Score': [90, 85, 88]
})
csv_buffer = io.StringIO()
df.to_csv(csv_buffer, index=False)
\`\`\`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Quarto reproduction in the issue and compare line-by-line execution over remote SSH with execution in remote Python or R script files. Investigate the path that sends mixed Python and R code to the console; done means the delay is eliminated or its cause and limits are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, r
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100