question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Variables don't show up or refresh in variable explorer on fresh install of Anaconda.

See original GitHub issue

Problem Description

On a fresh install of Anaconda (June 7th 2018), Spyder is not updating the variables in the variable explorer after each execution. In addition, after running the code once I can no longer change what variable types are displayed through the options gear. I updated Sypder (through anaconda) and reset it through the command prompt.

For example, if I run, n=100

the variable explores says n=100, but if I then run

n=0

the variable explores still reads n=100 even though python gives me n=0 if I type n into the terminal.

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

  • Spyder version: 3.2.8
  • Python version: 3.6.5
  • Qt version: 5.9.4
  • PyQt version: 5.9.2
  • Operating System name/version: Windows 10

Dependencies

IPython >=4.0    :  6.4.0 (OK)
cython >=0.21    :  0.28.2 (OK)
jedi >=0.9.0     :  0.12.0 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
numpy >=1.7      :  1.14.3 (OK)
pandas >=0.13.1  :  0.23.0 (OK)
pycodestyle >=2.3:  2.4.0 (OK)
pyflakes >=0.6.0 :  1.6.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pylint >=0.25    :  1.8.4 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
rope >=0.9.4     :  0.10.7 (OK)
sphinx >=0.6.6   :  1.7.4 (OK)
sympy >=0.7.3    :  1.1.1 (OK)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
amir-rafieiancommented, Jun 7, 2020

variable explorer bug (not showing new variables, or clean up after restart kernel) is still exist! (Spyder V4.1.3)

1reaction
austindowneycommented, Jun 8, 2018

I feel that I have not done an excellent job explaining the issue I have, so I created two videos. The first shows a simple code working on Spyder 3.2.6, and the second shows the same code not working in Spyder 3.2.8 while also showing how the variable explorer’s response to different inputs.

First, here is the code working in Spyder 3.2.6 https://www.youtube.com/watch?v=kvzjD0QdKlQ&feature=youtu.be

and not working in Spyder 3.2.8 https://www.youtube.com/watch?v=LEmf7z_LXbc&feature=youtu.be

This is the code I am running, where the n=2 is after IP.get_ipython().magic('reset -sf'). In this case, I should be left with n=2 in the variable explorer.

import IPython as IP
IP.get_ipython().magic('reset -sf')
n=2

I know I can use the clear option under Tools > Preferences > Run but I build code on Python that I also run on a cluster and the IPython command is a helpful check is those cases. Lastly, I think IPython should run in spyder without any interference. (I know that is a bold thing to say when I am not the one writing the code)

Again, thanks for all your hard work.

Best, Austin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder Refreshing Variable Explorer - python - Stack Overflow
I am using both of sypder 4.0 and spyder 5.0 with python 3.8. When I restrat kernel, the variable explorer is not refreshed...
Read more >
Troubleshooting — Anaconda documentation
Solution. Before updating or installing any packages with conda, be sure to terminate any running Anaconda processes such as Spyder or IPython. You...
Read more >
Variable Explorer — Spyder 5 documentation
Spyder Variable Explorer execution with a variable of type list. It shows the namespace contents (including all global objects, variables, class instances ...
Read more >
spyder-ide/public - Gitter
If the variables are wrapped in a function, they will not show up in the variables explorer. ... Anaconda update and installing new...
Read more >
Variable Inspector - Unofficial Jupyter Notebook Extensions
The Variable Inspector extension, which currently supports python and R kernels, ... The window not only display the name of variables but also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found