-
-
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
'Execute in external system terminal' unwantedly uses python2 on ubuntu16.04 #5165
Comments
Your suggestion is the right one, but it should be applied only to Linux. If you want to see this in our next release, please open a pull request with your suggestion against the |
Alternatively, we could use |
Yep, that's a better suggestion. Thanks @jitseniesen! |
I opened a PR (#5181). I would like to see this merged asap, because I will use spyder in a Python-for-engineering-lecture and running scripts in external terminals is necessary for some of the content. |
Description of your problem
What steps will reproduce the problem?
The simple script
What is the expected output? What do you see instead?
It produces different results, depending on run-configuration
option 1 "Execute in current console" and 2 "... dedicated console" results in output
3.5.2
case 3 "Excecute in external system terminal" results in output
2.17.12
Please provide any additional information below
I think the problem might be related to this line
https://github.com/spyder-ide/spyder/blob/master/spyder/utils/programs.py#L268
My suggestion instead:
Note that
python
runs python2 by default on Ubuntu16.04 and Debian9 (and I suppose at least the earlier versions)Versions and main components
Dependencies
IPython >=4.0 : 6.1.0 (OK)
cython >=0.21 : None (NOK)
jedi >=0.9.0 : 0.10.2 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
numpy >=1.7 : 1.11.0 (OK)
pandas >=0.13.1 : 0.17.1 (OK)
psutil >=0.3 : 5.3.0 (OK)
pycodestyle >=2.3: 2.3.1 (OK)
pyflakes >=0.6.0 : 1.6.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.7.2 (OK)
qtconsole >=4.2.0: 4.3.1 (OK)
rope >=0.9.4 : 0.10.7 (OK)
sphinx >=0.6.6 : 1.6.3 (OK)
sympy >=0.7.3 : 0.7.6.1 (OK)
The text was updated successfully, but these errors were encountered: