Does Spyder Variable Explorer auto‑refresh mutable objects after in‑place changes?
21K reputation · 26 Dec 2024, 12:02 UTC
When working in Spyder, the Variable Explorer lists all objects in the current IPython session. It refreshes automatically when new variables are created, but it appears to ignore in‑place modifications of mutable objects such as lists, dictionaries, or pandas DataFrames. The design choice to treat refresh as a manual action is intended to avoid performance overhead, yet this behavior is not clearly documented in the official Spyder documentation.
The goal is to understand whether Spyder can be configured to detect these in‑place changes automatically, and if so, which versions support it. Constraints include potential performance impact and the possibility that the explorer’s refresh logic may be disabled by user settings or by the presence of a large number of variables.
What is the current state of auto‑refresh for mutable objects in Spyder’s Variable Explorer? Can this behavior be enabled through a setting or a plugin? Which Spyder releases exhibit automatic detection of in‑place changes?