Python Interactive does not work in Remote - Containers
See original GitHub issueEnvironment data
- VS Code version: 1.35.0-insider (snap)
- Extension version (available under the Extensions sidebar): 2019.4.12954
- OS and version: Arch Linux
- Python version (& distribution if applicable, e.g. Anaconda): Anaconda
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Relevant/affected Python packages and their versions: jupyter 1.0.0
Expected behaviour
Interactive Python should work as described in Readme.md of vscode-dev-container example of Python 3 Anaconda. https://github.com/microsoft/vscode-dev-containers/tree/master/containers/python-3-anaconda
Actual behaviour
Debugging in container works but the Interactive Python does not. VSCode keeps trying to start the jupyter-server.
Steps to reproduce:
- Follow the Readme in https://github.com/microsoft/vscode-dev-containers/tree/master/containers/python-3-anaconda
Logs
Starting Microsoft Python language server.
[Info - 01:12:01] GetCurrentSearchPaths /opt/conda/bin/python
[Info - 01:12:01] Python search paths:
[Info - 01:12:01] /opt/conda/lib/python3.7
[Info - 01:12:01] /opt/conda/lib/python3.7/lib-dynload
[Info - 01:12:01] /opt/conda/lib/python3.7/site-packages
[Info - 01:12:01] Configuration search paths:
[Info - 01:12:02] Microsoft Python Language Server version 0.2.82.0
[Info - 01:12:02] Initializing for /opt/conda/bin/python
##########Linting Output - pylint##########
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging
)
workbench.main.js:238 [Extension Host] (node:120) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.main.js:238
/var/lib/snapd/snap/code-insiders/149/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:238 [Extension Host] Python Extension: Python Extension (Error in Failed to check if file needs to be fixed, method:doesFileNeedToBeFixed): Error: ENOENT: no such file or directory, open '/workspaces/vscode-dev-containers/containers/python-3-anaconda/.vscode/settings.json'
t.log @ /var/lib/snapd/snap/code-insiders/149/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:238
/var/lib/snapd/snap/code-insiders/149/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:238 [Extension Host] Python Extension: Python Extension (Error in Failed to check if file needs to be fixed, method:doesFileNeedToBeFixed): Error: ENOENT: no such file or directory, open '/root/.config/Code - Insiders/User/settings.json'
t.log @ /var/lib/snapd/snap/code-insiders/149/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:238
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Python Interactive does not work in Remote - Containers
Debugging in container works but the Interactive Python does not. VSCode keeps trying to start the jupyter-server. starting-juptrer-server ...
Read more >Debug Python within a container - Visual Studio Code
How to configure and troubleshoot debugging of Python apps running in a Docker container, using Visual Studio Code.
Read more >Remote Python Development in Visual Studio Code
Remote -Containers: develop in workspaces running inside of local ... You can run cells and view graphical output in the Python Interactive ......
Read more >VSCode remote-container default python interpreter
I then open a python file and hit F5 to run, but it doesn't recognize some packages. I have to click in VSCode...
Read more >Getting Started with Python 3 Dev Containers
VS Code's Python-3 dev container provides a non-root user that you can use to enforce that the interactive dev container sessions are not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
BTW, when I change the blocking line to
and let it continue, Python extension do connect to Jupyter server and it seems to get cell executed. However, no output is still displayed in “Python Interactive” tab.
If you go to ‘Help | Toggle Developer Tools’, open the console, right click and save as, I can help diagnose the problem.