This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cbrnr
Recipients cbrnr, ned.deily, ronaldoussoren
Date 2018-02-22.10:55:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519296916.2.0.467229070634.issue32909@psf.upfronthosting.co.za>
In-reply-to
Content
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 (https://github.com/matplotlib/matplotlib/issues/6242), but I don't think this problem can be fixed by matplotlib. Instead, according to this SO post (https://stackoverflow.com/a/21567601/1112283), the following command fixes the behavior:

defaults write org.python.python ApplePersistenceIgnoreState NO

Since this problem also comes up with Homebrew, I created an issue (https://github.com/Homebrew/homebrew-core/issues/24424), 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.
History
Date User Action Args
2018-02-22 10:55:16cbrnrsetrecipients: + cbrnr, ronaldoussoren, ned.deily
2018-02-22 10:55:16cbrnrsetmessageid: <1519296916.2.0.467229070634.issue32909@psf.upfronthosting.co.za>
2018-02-22 10:55:16cbrnrlinkissue32909 messages
2018-02-22 10:55:15cbrnrcreate