-
-
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
No simple way to run Python files in an external terminal in 6.0.4 #23701
Comments
What do you mean exactly by this? Did you make some changes to the run configuration when "External Terminal" is selected and they didn't take effect immediately?
Correct, there's no way to do that at the moment in Preferences, but we could come up with something for 6.0.5 if you think it's really important. |
Media.mp4I have not cleared any configs yet, but this should be well separated from my dev environment configs, so I think this was caused simply from a regular update process. I can seemingly no longer even get it to consistently launch an external terminal even after rebooting spyder. |
I've tried taking a longer video of the behavior, but it's always too big for github... https://drive.google.com/file/d/1zrSUuDXhCrt8TT82E0ZHpG5QeUO44Bpn/view?usp=sharing Here's my process to repeat the bug so far:
|
Ok, thanks for the detailed instructions. According to what you said:
This is a bug. We should always run the file in the IPython console.
That's the change I implemented in 6.0.4, i.e. to always use the IPython console to run Python files regardless of what's selected in
Now you need to go to the menu entry |
This to me seems like a regression then to the functionality of being able to configure how code gets run. Generally I either have code that gets run in IPython, or it is for some reason incompatible and needs to be run externally (for example developing Qt applications). Basically it is generally only one or the other for me, and it doesn't change much for a given file, so configuring one as the default seems very correct and natural to me. I understand it was somewhat inconsistent with the neighboring actions (run selection and run cell) always running in IPython, but that was actually quite useful in itself being able to use the more advanced features of IPython for small segments of code where running the entire file would crash unless run externally. I don't know about others, but it never seemed confusing to me that the actions which only partially ran code, or interacted in more advanced ways (ie: profiling/debugging) would ignore the external terminal setting (which did apply to the "run" action).
To me that's really bare minimum. I would say a toolbar button would also be required, but really I would prefer a way to achieve the prior behavior. If it is confusing to use the same dialog to configure the runners and to select the default, would it be okay to have a separate dialog to select the "default runner" which is called with F5 or the "run" button? Maybe even dynamically change the icon on the run toolbar button based on the "default runner" (sticking with the ▶ and $ icons given in the menu)? |
After updating to spyder 6.0.4 from 6.0.3, changing the run configuration for a file to "External Terminal" will not apply until after a reboot. This does not apply to changing back to "IPython Console".
While debugging this, I could not find a way to set the default runner for new files. I can use run configuration per file, but how can I set external terminal the default for all (new) files? Rolling back through versions, it seems like this was lost from spyder 5 to 6?
Also github issue template not working?
Spyder info
The text was updated successfully, but these errors were encountered: