New submission from cbrnr <>:

There seems to be a problem with using certain Python packages and the 
application resume feature of recent macOS versions. Specifically, whenever I 
"import matplotlib.plyplot" or run the magic command "%matplotlib" in IPython, 
I get the following warning message:

2018-02-22 10:35:38.287 Python[4145:281298] ApplePersistenceIgnoreState: 
Existing state will not be touched. New state will be written to (null)

There's an issue in the matplotlib repo 
(, but I don't think this 
problem can be fixed by matplotlib. Instead, according to this SO post 
(, the following command fixes the 

defaults write org.python.python ApplePersistenceIgnoreState NO

Since this problem also comes up with Homebrew, I created an issue 
(, but the maintainers 
indicated that (1) this might be a Python issue and should be addressed 
upstream, and (2) the solution above is not a real fix and the correct behavior 
should be implemented programmatically by Python itself.

components: macOS
messages: 312550
nosy: cbrnr, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: ApplePersistenceIgnoreState warning on macOS
type: behavior
versions: Python 3.6

Python tracker <>
Python-bugs-list mailing list

Reply via email to