-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder no longer runs "windowless" on Windows 10/11 from virtual environment #23342
Comments
Hey @DStauffman, thanks for reporting. You said:
Unfortunately, we're a very small team and don't have the resources to support custom ways to launch Spyder. In other words, you're basically asking us to debug your own method to do that, for which we don't have time.
Spyder starts without terminal windows when using our own installers or Anaconda/Miniconda. So, I'm sorry to say it but it's up to you to solve this one, sorry, If you find the cause, that cause is in Spyder and you'd like to submit a pull request to fix it, we'll be happy to merge it. |
I looked into this a little bit, but couldn't find the problem. It seems very related to #4992. It is likely there is a call to subprocess.Popen somewhere that doesn't have the appropriate Windows flags being set. |
I doubt that's the issue because other Windows users would be seeing this problem, and no one has reported it in a long time. So, I think it lies in the way you're launching Spyder. |
Well, good news, this bug is fixed (in venv). I tried to better isolate when the problem happens and when it doesn't and I actually tied to my Python version (v3.13.0). I went back to Python v3.12.8 and everything behaves as expected, and then tried v3.13.1 and everything is once again as expected. I tracked it down to this bug (python/cpython#126084) in venv itself, which is what I was using to build the virtual environment. |
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
When I launch Spyder, I now get three blank windows that open up and stay open. It happens on both Windows 10 and Windows 11. I don't remember it happening when v6.0.0 came out, but maybe it did. I know it has happened in both v6.0.2 and v6.0.3
What steps reproduce the problem?
This is the same way I've been running spyder for several months now, because I really don't like the extra windows:
I install spyder within a virtual environment using pip, currently with Python v3.13.0
I create a Windows spyder.bat file to run Spyder:
I create a Visual Basic wrapper, called run_spyder.vbs to run the bat file without keeping a window open:
Finally, I create a shortcut on my desktop that links to the vbs file and run that.
What is the expected output? What do you see instead?
I expect Spyder to run without any terminal windows that stay opened. Instead, I now see three of them. The first has a window title of "spyder.exe", while the second two appear to be instances of "pythonw.exe"
Versions
The same thing happens on my Laptop that is running Windows 11.
Dependencies
The text was updated successfully, but these errors were encountered: