8000 Secure coding warning · Issue #14234 · ipython/ipython · GitHub
[go: up one dir, main page]

Skip to content

Secure coding warning #14234

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

Open
apaksoy opened this issue Nov 2, 2023 · 4 comments
Open

Secure coding warning #14234

apaksoy opened this issue Nov 2, 2023 · 4 comments

Comments

@apaksoy
Copy link
apaksoy commented Nov 2, 2023

When I run the ipython command in macOS Terminal, I get the following warning message immediately:

In [1]: 2023-11-02 03:53:11.250 Python[25917:5218283] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

I just press enter and continue using IPython after this message appears. It does not look like the problem I get warned about affects my use of IPython, but I have not been doing anything complicated so far.

Would anyone know how I can make this warning message disappear properly?

I started getting this warning with IPython after I upgraded the macOS on my 2019 MacBook Pro from Ventura 13.6.1 to Sonoma 14.1. I am using Python 3.10.4 and IPython 8.17.2.

@bollwyvl
Copy link
Contributor
bollwyvl commented Nov 2, 2023

This is potentially related to the upstream issue:

There may or may not be anything concrete to do (or even test) on this repo.

@apaksoy
Copy link
Author
apaksoy commented Nov 2, 2023

@bollwyvl You might be right because I remembered that there was some, albeit simple, startup code that runs automatically when I start IPython.

However, the line in that code that appears to cause the warning message is also IPython related which is:

get_ipython().run_line_magic('matplotlib', 'osx')

When I comment out this line within the startup code, I get no warning messages from IPython initially. When I run it manually from within IPyhton thereafter, the warning message reappears.

@cbrnr
Copy link
Contributor
cbrnr commented Nov 22, 2023

What exactly is this startup command doing? It seems like it might need to be adapted in order to address the warning.

@scbarton
Copy link

Using python 3.11.7 and ipython 8.19 on macOS Sonoma 14.2, the warning is still there. The issue with Tk suggested it would be fixed in python 3.11.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0