Variable Explorer very slow with large dataframe
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
Variable Explorer is extremely slow in a dataframe containing 30k+ rows. It’s nearly nstantaneous in Spyder 3.3.3. Scrolling is extremely laggy, window freezes frequently.
What steps reproduce the problem?
Run the code following:
import pandas as pd
import numpy as np
from datetime import datetime
bdates = pd.bdate_range(start = datetime(1900, 1, 1), end = datetime.today())
vect_random = np.random.normal(size=len(bdates))
df = pd.DataFrame(vect_random, index = bdates)
And open the df variable in the Variable Explorer, and scroll.
What is the expected output? What do you see instead?
Should be as fast to open and scroll as in 3.3.3
Versions
- Spyder version: 4.1.2
- Python version: 3.7.7
- Qt version: 5.9.6
- PyQt version: 5.9.2
- Operating System name/version: Windows 10
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
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 >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 >iPython console gets totally unresponsive when using large ...
The problem is clearly reproducable with large dataframes and an activated "Variable Explorer" in the python console. If I disable the "Show Variables"...
Read more >vscode + python + interactive mode + variable explorer slow ...
the variable explorer really struggles to show me a dataframe with more than 100k rows. the variable explorer can't open pandas index objects ......
Read more >How slow is iterating over a pandas DataFrame? - YouTube
You can do it, but it's a lot slower than you think. Especially when you see how much we can speed it up.00:00...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
See: https://github.com/spyder-ide/spyder/pull/11210
Hi @dalthviz it seems we have some performance degradation. Please take a look at this one to see what might be caiusing the slowdowns.