-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having a lof of data in the Variable explorer slows down Spyder considerably #2593
Comments
Please post how you're creating your big big data array. |
Hi, import numpy as np
from pandas import DataFrame
aa = dict()
for i in range(0,222):
key = "%04i" %(i)
bufData = np.concatenate((np.random.rand(10000, 1), np.random.rand(10000, 1), np.random.rand(10000, 1), np.random.rand(10000, 1), np.random.rand(10000, 1),
np.random.rand(10000, 1), np.random.rand(10000, 1), np.random.rand(10000, 1), np.random.rand(10000, 1), np.random.rand(10000, 1)), 1)
aa[key] = DataFrame.from_records(bufData, columns=['globCnt', 'adcHigh', 'adcLow', 'distance', 'posErr', 'preshForce', 'propForce', 'derivForce', 'integForce', 'totalForce']) if you have the variable explorer open it becomes difficult to work with the IDE. If you close or switch to another tab, the IDE is responsive again. |
Thanks for the example. I'll look into it for 3.0 |
This problem was partially addressed on issue #2560, but I have another idea to improve the situation. |
…r lists and dicts This was motivated by issue #2593, after noticing people is using those collections to save big DataFrames
I'm a fan of Spyder, and suffers from this problem too. Anyway it's amazing Python IDE, like matlab-for-python :) |
I've run in to a similar issue using Spyder 3.3.2 with both Python 2.7 32-Bit and Python 3.7 64-Bit. In particular I was trying to determine which part of my code is taking the most time. I implemented timeit.timeit() to see how long it was taking to csv.read() of a large dataset ~3Million Rows, Single Column. Timeit was telling me the average time was microseconds; however, running the code within the Spyder IDE takes ~ 4seconds. I am not sure if timeit() doesn't actually load variables into memory or if it's executing the same routine. It's hard to know without having some output. |
@seanbraxton, please open a new issue about your problem along with some simple code to recreate it. |
Description
The variable explorer slows down the spyder IDE, when big data is present in the workspace.
Activating the "Truncate values" option and disabling the min/max option does not improve the situation (as expected from documentation). Is there a way out? Closing the variable explorer/ or switching on another tab removes the problem.
Version and main components
Optional dependencies
pyflakes >=0.6.0: 0.8.1 (OK)
pep8 >=0.6 : 1.6.2 (OK)
IPython >=1.0 : 3.1.0 (OK)
zmq >=2.1.11 : 14.6.0 (OK)
pygments >=1.6 : 2.0.2 (OK)
pandas >=0.13.1 : 0.15.2 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
psutil >=0.3 : 2.2.0 (OK)
rope >=0.9.2 : 0.9.4-1 (OK)
jedi >=0.8.1 : 0.8.1 (OK)
matplotlib >=1.0: 1.4.2 (OK)
sympy >=0.7.3 : 0.7.6 (OK)
pylint >=0.25 : 1.4.3 (OK)
The text was updated successfully, but these errors were encountered: