You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm also facing this issue. For me the code above runs for 2 seconds in normal mode and 1.5 minutes in the debug mode. I have Spyder 5.4.3, pandas 1.5.3, Python 3.11.3.
Probably, since in spyder 5.3.3 my own code runs through debugging a lot faster, same for the code from #20571
If needed I would be glad to make some tests if you tell me what to do.
Actually, I think this is more related to issue #20639. Although the title is misleading, we found there that a serious slowdown in the debugger is caused by a new feature added in IPython 8 (which we started to support in Spyder 5.4).
So, for now the workaround is to downgrade to IPython 7.34. We'll provide a real fix for IPython 8 in our next version (5.4.4), to be released in a couple of weeks.
Description
What steps will reproduce the problem?
import datetime
import pandas as pd
def pdwork():
df = pd.DataFrame({'a':[0,1,2,3,4,5]})
df['b'] = df['a'] + 1
df1 = df - 3
df2 = df1.combine_first(df1)
return
def spinpd(n):
for i in range(n):
pdwork()
return
start_time = datetime.datetime.now()
spinpd(1000)
end_time = datetime.datetime.now()
print(end_time - start_time)
run the above in debug/not using Spyder 5.4.3 vs 5.2.2
the latter shows a slowdown of about 4x, the former 30x
running python 3.10.6 vs 3.9.12 seems not to matter
nor does pandas 2.0.0 vs earlier; it's the diff versions of spyder that make the difference
Versions
Dependencies
The text was updated successfully, but these errors were encountered: