vscode-jupyter: Extension is returning "r.stat is not a function" when starting a Jupyter notebook
Bug: Notebook Editor, Interactive Window, Editor cells
Steps to cause the bug to occur
This is all I’ve done:
- Opted in run by line experiment and the Insiders build
- Selected a Python 3.8 venv with jupyter installed (Python from Windows store, might be relevant)
- Opened a blank notebook
Actual behavior
Your Jupyter and/or Python environment
Please provide as much info as you readily know
- Jupyter server running: Local
- Extension version: 2020.7.86945-dev
- VS Code version: 1.46.0
- Python and/or Anaconda version: 3.8
- OS: Windows
- Virtual environment: venv
- jupyter --version:
jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : 4.7.4
ipython : 7.15.0
ipykernel : 5.3.0
jupyter client : 6.1.3
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.7
traitlets : 4.3.3
Developer Tools Console Output
Output window
User belongs to experiment group 'RunByLine - experiment'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'LocalZMQKernel - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'CustomEditorSupport - control'
> conda --version
> pyenv root
> python3.7 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.7 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.6 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -2 c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> conda info --json
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Python interpreter path: .\env38\Scripts\python.exe
Starting Jedi Python language engine.
> conda --version
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> ~\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> c:\Users\luabud\Apps\sample-notebook\env38\Scripts\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\luabud\.vscode\extensions\ms-python.python-2020.7.86945-dev\pythonFiles\pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Developer Tools
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (9 by maintainers)
The opt-out works, I just had to put it in the remote machine settings.json, not my local user settings.json. Thanks.
Just as a heads up. We did find a fix for 2.7 with the new method of launching (due mid-July). Should be shipping in our next update. For now the workaround that I provided should unblock things.
I have encountered the same issue here on python 2.7 with Conda environment.
@IanMatthewHuff 's suggestion works for me. You will need to reload extensions after making suggested changes in settings.
@ducalpha Can I ask you a few questions on this?
Thanks much.