The Wayback Machine - https://web.archive.org/web/20250501054323/https://github.com/matplotlib/matplotlib/issues/27389/
Skip to content

[Bug]: Warning after update to macOS 14 "WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES." #27389

Closed
@timdiller

Description

@timdiller

Bug summary

After updating to macOS 14, importing matplotlib generated a warning repeatably in multiple ipython or python sessions:

In [1]: import matplotlib

In [2]: 2023-11-28 21:33:05.230 Python[48540:342836] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

After terminating and restarting the python environment, the warning was no longer generated.

Code for reproduction

import matplotlib

Actual outcome

❯ ipython
Python 3.8.18 |Enthought, Inc. (x86_64)| (default, Oct 16 2023, 18:04:34) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.31.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import matplotlib

In [2]: 2023-11-28 21:33:05.230 Python[48540:342836] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

Expected outcome

In [1]: import matplotlib

Additional information

I'm using Enthought's edm for my Python environment. This warning happened consistently in multiple ipython sessions in the first python environment I opened after upgrading to macOS 14. After closing the shell and re-opening it, the warning is gone.
This phenomenon was briefly discussed here

Operating system

macOS 14

Matplotlib Version

3.5.1

Matplotlib Backend

No response

Python version

3.8.1

Jupyter version

No response

Installation

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions