问题
When I am programming in Spyder it happens from time to time that I get an error message like this:
ERROR! Session/line number was not unique in database. History logging moved to new session
I never really bothered with it, because I couldn't see any effect it had on the outcome of my code. However, just to be sure, I'd like to know what exactly it means, for which reasons this error tends to occur and whether/how I should fix it. Google wasn't a great help for that matter, but from naive observation, I have the hunch that it is related to printing things to the console.
回答1:
(Spyder maintainer here) It seems this error occurs when IPython fails to write cached entries to its history database. You can find it in this file.
来源:https://stackoverflow.com/questions/35986087/spyders-warning-session-line-number-not-unique-in-database