Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase efficiency of Python values when they're expanded in the Variables pane #2537

Open
jmcphers opened this issue Mar 25, 2024 · 1 comment
Labels
enhancement New feature or request lang: python

Comments

@jmcphers
Copy link
Collaborator

Currently, Python variable values do not auto-update in the Variables pane the way R variables do. This is because it is difficult and inefficient to recursively crawl all of the variables to check for updates.

One way to make this better might be to maintain a list of variables that are currently open (i.e. an array of expanded paths) on the backend as well as the frontend. This has the disadvantage of making the backend more stateful, but it also has a significant advantage: instead of trying to inspect every variable to see if it has changed, we could just crawl the ones that are currently open for inspection, which could probably be done efficiently.

@jmcphers jmcphers added enhancement New feature or request lang: python labels Mar 25, 2024
@juliasilge juliasilge added this to the Release Candidate milestone Apr 1, 2024
@seeM
Copy link
Contributor

seeM commented May 22, 2024

This is working on the latest release, although it isn't efficient so most of the notes in the issue description are still valid. Maybe we can reword the title?

@isabelizimm isabelizimm changed the title Show live updates to Python values when they're expanded in the Variables pane Increase efficiency of Python values when they're expanded in the Variables pane Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lang: python
Projects
None yet
Development

No branches or pull requests

3 participants