posit-dev / posit-dev/positron

Quarto Notebooks: Session variables panel not updating in polyglot notebooks

Open
#14,636 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: notebooks-quarto area: reticulate area: variables bug support
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):

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.