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.

Variable explorer is very slow

See original GitHub issue

The variable explorer in Spyder 5.1.1 performs very slowly. Consider the following example:

my_list = []

for i in range(300):
    # already slow
    # my_list.append(i)

    # more complex list --> even slower variable explorer
    a = (i, (2*i, 3*i, 4*i))
    my_list.append(a)  

The list my_list appears correctly in the variable explorer. But it is almost impossible to inspect the list in the variable explorer, the respective dialog freezes constantly. Problems can be observed already for the simple test case and are more severe for the complex list. I observed this behavior on two different computers with fresh installations. Inspecting the same list in Spyder 3.3.6 is no problem.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:21 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
andprosoftcommented, Aug 24, 2021

@ccordoba12 @dalthviz Thanks for investigating this issue. As suggested, I tried the following commands to install Spyder:

conda create -n py37 python=3.7
conda activate py37
conda install -c conda-forge matplotlib numpy pandas
conda install spyder

As expected, this improved the performance significantly. The variable explorer still seems to be a little bit slower than it was in Spyder 3, but is now much faster than before.

2reactions
ccordoba12commented, Aug 24, 2021

Something like retrying to import the modules each time a GUI update is being done?

Yeah, it could be something like that. I’ll check to see if I can fix it in 5.1.2.

In addition, after uninstalling Pandas, Numpy and Scipy from my environment, I can also reproduce this problem on Linux.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Variable Explorer very slow with large dataframe · Issue #12575
Variable Explorer is extremely slow in a dataframe containing 30k+ rows. It's nearly nstantaneous in Spyder 3.3.3. Scrolling is extremely laggy, ...
Read more >
Why is VSCode Data Viewer so slow? - Reddit
Unfortunately, the Data Viewer on VSCode is very very slow. The variables are not updated in real time, it has some delay to...
Read more >
vscode + python + interactive mode + variable explorer slow ...
the variable explorer does not show the data as its stored, example: my EAN18 code's had their last 2 digits transformed into a...
Read more >
Variable explorer slow to open in spyder 4 with large dataframes
However, I have noticed that moderately large data frames are very. slow to open in the variable explorer. For instance, the data frame...
Read more >
Coding workflow with VSCode - TechyTok
Variable explorer Permalink. In many cases, it might not be practical or you might not want to write the code to print a...
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