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 very slow with large dataframe

See original GitHub issue

Issue 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 (or pip, 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
goanpecacommented, May 12, 2020
1reaction
goanpecacommented, May 4, 2020

Hi @dalthviz it seems we have some performance degradation. Please take a look at this one to see what might be caiusing the slowdowns.

Read more comments on GitHub >

github_iconTop 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 >

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