Skip to content

Save figure dialog blocks IPython after saving #3836

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

Closed
lebigot opened this issue Nov 23, 2014 · 10 comments
Closed

Save figure dialog blocks IPython after saving #3836

lebigot opened this issue Nov 23, 2014 · 10 comments

Comments

@lebigot
Copy link
Contributor

lebigot commented Nov 23, 2014

In OS X (Yosemite), saving a file through a dialog can generally prompt the user for the password of any closed (and recently used) disk image (for which no password was saved). The user can then choose to dismiss the password prompt.

The OS X backend of Matplotlib 1.4.2. instead does not show the password prompt dialog, but prints (when in IPython) Enter password to access "…" (with the name of the disk image) and blocks: IPython cannot be used anymore (no command can be entered).

@lebigot lebigot closed this as completed Nov 23, 2014
@lebigot lebigot reopened this Nov 23, 2014
@tacaswell tacaswell added this to the unassigned milestone Nov 24, 2014
@tacaswell
Copy link
Member

attn @mdehoon

@mdehoon
Copy link
Contributor

mdehoon commented Nov 25, 2014

Does this also happen with regular Python (i.e. not IPython)?

@lebigot
Copy link
Contributor Author

lebigot commented Nov 25, 2014

Yes and no: yes, the same message is printed in the terminal (instead of opening a dialog as is usual in Mac OS X Yosemite), but no it does not seem to block anything (the figure still responds to the mouse [like with IPython]), and closing the figures makes pyplot.show() continue normally (which gives back the shell prompt back, unlike in IPython).

@tacaswell
Copy link
Member

Is this a duplicate of #3476 ?

@lebigot
Copy link
Contributor Author

lebigot commented Nov 27, 2014

This is not a duplicate of that issue. The file can be saved normally. The problem on OS X (in the condition I described) is that after the file is saved, the IPython prompt is blocked (probably because the terminal is waiting for the disk image password—instead of having had a window pop up for this and be closed by the user).

@lebigot
Copy link
Contributor Author

lebigot commented Dec 14, 2014

PS: I found a way of making Python not block after it displays Enter password to access "…": Ctrl-C releases it (it only prints KeyboardInterrupt, nothing else.

@tacaswell tacaswell modified the milestones: 1.5.0, unassigned Feb 7, 2015
@tacaswell tacaswell modified the milestones: proposed next point release, next point release Jul 17, 2015
@tacaswell tacaswell modified the milestones: 2.1 (next point release), 2.2 (next next feature release) Oct 3, 2017
@dstansby
Copy link
Member

dstansby commented Jan 2, 2023

I can't work out how to reproduce this - @lebigot is this still an issue, and if so could you post a step by step guide to reproduce it?

@lebigot
Copy link
Contributor Author

lebigot commented Jan 2, 2023

I did try to reproduce the issue on macOS 13.1, but I can't find my recently mounted (and then ejected) disk image in the figure Save dialog. The dropdown menu with recent items used to show it and it could be selected (which prompted the user for the password of the disk image).

I am closing this, then, especially since I'd be surprised if most users haven't switched to Jupyter!

@lebigot lebigot closed this as completed Jan 2, 2023
@lebigot
Copy link
Contributor Author

lebigot commented Jan 2, 2023

PS: for reference, the step by step procedure to reproduce this is:

  1. Launch Disk Utility so as to create a new disk image.
  2. Select File > New Image… > Blank image.
  3. Create an encrypted image. Do not save the password.
  4. (Maybe: add a file to the new disk, so as to create some "activity" in the new disk.)
  5. Eject the new disk.

Before, the (now unmounted) new disk would appear in the (expanded) Save dialog of figure, with the macOS backend, and it could be selected. This would prompt the user for the disk image password.

@tacaswell
Copy link
Member

This seems like both reasonable behavior and something that we have fully out-sourced to OSX (as we are using the native file browser UI).

@QuLogic QuLogic removed this from the future releases milestone Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants