-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder is slow to start due to big history file #7080
Comments
For closing, I can go down to 2s by not having any ipython console opened, and down to <1s by changing |
Please downgrade to Qt 5.9 and try again. There are multiple reports that PyQt apps don't work well with this version. |
We have plans to improve this for Spyder 4, but I'm unsure what to do about Spyder 3. There's a config option to limit the number of lines of |
I can reproduce with:
Python 3.6.5 64bits, Qt 5.9.1, PyQt5 5.9 on Darwin
|
My problem is that until I spent time looking into that, I didn't know why spyder was so slow to start. So this is not a good experience for an everyday user. I would probably try to show a message like: "Spyder is slow to start, here what you can do"? My history is 225k lines, but the setting says 100 max. My understanding of that is: When spyder is starting, So either |
This seems to be two unrelated issues. Should I open a new issue? |
Your understanding seems to be correct. Could you open a PR for this? It'd be greatly appreciated!
Yes, please open a new issue about the WebEngineProcess'es. |
What does the |
I opened #7091 |
It's not my code, but I'm pretty sure that |
Yes, @jitseniesen is right. |
The history is duplicated. Why is the history not just loaded from the ipython "history.sqlite"? Is there anyone not using the ipython console? Also this is a bit confusing because the "history log" is not related to what you can actually access by pressing "up" in the ipython console. |
What do you mean buy this? We save the contents of every command introduced in our consoles in the history log. |
If I delete the When you press up, ipython gets data from So while we do save every command in My questions are therefore:
|
My answers:
Yes.
Yeah, that would be better. We could get rid of However, we haven't had time to do it but it'd be a very nice thing to do for Spyder 4.
No, the Python console was removed in 3.2
No idea. @takluyver, could you give us a hand here? I think you are the one who knows best how to access |
For read-only access, you want a HistoryAccessor object. The This was one of the first bits I worked on in IPython :-) |
Thanks a lot Thomas! |
When starting, spyder reads a 10Mo text file in ~/.spyder-py3 called history.py.
That takes ~15s, which is a painfully noticeable start-up time.
Is there an option to limit how far back I want to load the history?
The easy work-around is for me to edit manually this file, but if an user is not aware of this, he might get annoyed by the start-up time.
I can go from 22s to 6s start-up time, which is not fast but way less annoying.
Also closing spyder takes almost 9s. I couldn't figure out why. If I have to restart spyder, usually I just kill it to avoid having to wait.
Python 3.6.5 64bits, Qt 5.10.1, PyQt5 5.10.1 on Darwin
OSX 10.13.4
The text was updated successfully, but these errors were encountered: