posit-dev / posit-dev/positron
Quarto Notebooks: Session variables panel not updating in polyglot notebooks
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
In an polyglot R/Python notebook, the panel containing the sessions variables does not update when switching from an R code chunk to a Python one (or vice versa):
To reproduce the issue, create a notebook with chunks as in the screenshot and alternate between running the R and the Python chunk.
Expected behavior: The session variables pane shows the variables corresponding to the language of the chunk surrounding the current cursor position.
Actual behavior: The session variables pane is not updated when moving the cursor, nor when the chunk of another language is run.
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
Reproduce the issue in a Quarto notebook containing alternating R and Python chunks, then inspect the session variables panel and the update path triggered by cursor movement and chunk execution. Done means the panel switches to the variables for the language surrounding the cursor and updates after running a chunk in the other language.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, r, typescript
- Domain
- developer-experience, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100