Skip to content
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

Prevent Windows from opening command prompt (#4021) [backport to 1.4.x] #4041

Merged
merged 2 commits into from Jan 29, 2015

Conversation

dopplershift
Copy link
Contributor

This tells Windows not to create a new window when using Subprocess to
save an animation.

This tells Windows not to create a new window when using Subprocess to
save an animation.
@dopplershift
Copy link
Contributor Author

This mimics a tested solution by @kjgregory in #4021

@tacaswell tacaswell added this to the v1.4.x milestone Jan 26, 2015
@tacaswell tacaswell changed the title Prevent Windows from opening command prompt (#4021) Prevent Windows from opening command prompt (#4021) [backport to 1.4.x] Jan 26, 2015
@WeatherGod
Copy link
Member

I wonder if there are other subprocess calls that this might be relevant for?

@WeatherGod
Copy link
Member

btw, the comments in this patch is perfect! I know I would be scratching my head 2 years from now trying to remember why we did this!

@dopplershift
Copy link
Contributor Author

@WeatherGod this isn't my first rodeo :)

"Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live."

@dopplershift
Copy link
Contributor Author

Regarding other places in matplotlib's code, have we had anyone else complain about this? I proactively changed both places in animation, but based on testing, the problem only occurred on the call that actually saved the movie. It might be specific to something the program is doing at that point, since it doesn't seem like it was a problem just from running a program in subprocess.

@WeatherGod
Copy link
Member

@dopplershift, fair enough. I hate bugs like this where we know how to "fix" it, but have no real clue why it happens, or exactly what the fix is doing to prevent the problem. I guess we would have noticed by now if the latex interface was borked by a similar issue.

@dopplershift
Copy link
Contributor Author

I agree, but since I haven't run matplotlib on windows in 7 years, I'm disinclined to guess what that crazy platform needs. (I have enough problems building on my mac...)

@dopplershift
Copy link
Contributor Author

....and apparently I'm an idiot and didn't install before running tests. Fix coming.

@pelson
Copy link
Member

pelson commented Jan 27, 2015

👍 LGTM

@tacaswell
Copy link
Member

Did this get tested on a mac?

@dopplershift
Copy link
Contributor Author

They just did here, the smoketests passed fine. Also the moviewriter.py example worked fine.

tacaswell added a commit that referenced this pull request Jan 29, 2015
BUG : Prevent Windows from opening command prompt
@tacaswell tacaswell merged commit cad8651 into matplotlib:master Jan 29, 2015
tacaswell added a commit that referenced this pull request Jan 29, 2015
BUG : Prevent Windows from opening command prompt
@tacaswell
Copy link
Member

cherry-picked to 1.4.x as 36a7a21

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

Successfully merging this pull request may close these issues.

None yet

5 participants