code-server: Python file is not running - Code-server: 3.10.1
OS/Web Information
- Web Browser: Edge
- Local OS: Linux - Ubuntu 20.04 LTS
- Remote OS: Ubuntu 20.04 LTS
- Remote Architecture: VM
code-server --version: 3.10.1 421237f499079cf88d68c02163b70e2b476bbb0d Latest
Steps to Reproduce
- Run a python file in terminal
Expected
It should run my python file.
Actual
- The terminal is not opening!
- Throwing two errors:
- command :
'python.execlnTerminal'not found - command :
'python.execlnTerminal-icon'not found
- command :
Logs
Screenshot

Notes
This issue can be reproduced in VS Code: Yes
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (5 by maintainers)
Heads up - I’m looking at Jupyter again and will try to land a fix soon, depending on how complex the bug is.
@rwanito Could you create another issue for this actually? The current issue (the Python extension not working) was fixed, but installing extensions offline is a separate issue that we’d have to address.
I’ve just updated the extensions with the versions mentioned and set LSP to Jedi: With interactive code or notebook, the Python environment starts correctly and I can run “Python: Select interpreter”.
But then with interactive code and notebook, any cell with output will fail (Chunk load error / timeout behavior)
@ericct it’s possible you were running into a similar bug to the one I ran into while diagnosing this - with the language server set to default, closing and reopening made autocomplete no longer work correctly.
Can you update both extensions, set the LSP to Jedi, and try again?
Hey there, I’ve pushed new versions of the extensions, can you please install
ms-python.python 2021.5.842923320andms-toolsai.jupyter 2021.6.832593372and report back?PS: there appears to be an upstream bug that causes autocomplete to break (without Pylance, which we are not allowed to ship) with the LSP set to Default, so please change the language server to
Jediin the Python extension settings.I have this same issue, appears to only be an issue when clicking the play button in the top right, if I type out my command as you did then it runs as expected.
I am a total novice so cannot speculate as to why this issue is arising, I am only using the platform currently as a learning tool.
I have exactly the same issue as you. But I figured it out that it was simply a bug of ms-python extension. Just choose an old version and hopefully the problem will be solved.
It’s possible this is because our Python extension is broken. Uninstalling Python and Jupyter and installing Python from Open VSX instead might work around the issue for now (the Python extension on Open VSX is bundled with Jupyter).
See https://github.com/cdr/code-server/issues/3364#issuecomment-840513845