Skip to content

wrong kernel loads in python interactive #2856

@dschneiderch

Description

@dschneiderch

I can't choose the conda kernels. This has always been hit or miss (there was a previous thread I was part of that I couldn't find) but now no matter what it always launches the same kernel.

vscode-kernel-issue

Environment data

  • VS Code version: 1.39.1
  • Extension version 2019.10.41019 (8 October 2019)
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): miniconda, python 3.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jedi not check

Expected behaviour

I select the conda kernel from the bottom left or from ctrl+shift+p and then launch conda kernel

Actual behaviour

always launches same kernel "plantcv"

Steps to reproduce:

select any kernel from any conda environment

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

User belongs to experiment group 'ShowPlayIcon - start'
Starting Microsoft Python language server.
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> py -3.7 -c "import sys;print(sys.executable)"
> py -3.6 -c "import sys;print(sys.executable)"
> py -3 -c "import sys;print(sys.executable)"
> py -2 -c "import sys;print(sys.executable)"
> ~\Miniconda3\envs\testenvironment\python.exe -c "import sys;print(sys.executable)"
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat info --json
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\interpreterInfo.py
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat info --json
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat --version
> ~\Miniconda3\envs\testenvironment\python.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\normalizeForInterpreter.py "from plantcv import plantcv as pcv"
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> ~\Miniconda3\envs\testenvironment\python.exe -m jupyter notebook --version
> ~\Miniconda3\envs\testenvironment\python.exe -m jupyter notebook --version
> ~\Miniconda3\envs\testenvironment\python.exe -m notebook --version
> ~\Miniconda3\envs\testenvironment\python.exe -m notebook --version
> ~\Miniconda3\envs\testenvironment\python.exe -m jupyter notebook --version
> ~\Miniconda3\envs\testenvironment\python.exe -m jupyter notebook --version
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> C:\Python27\python.exe -m jupyter notebook --version
> C:\Python27\python.exe -m jupyter notebook --version
> C:\Python27\python.exe -c "import jupyter"
> C:\Python27\python.exe -c "import jupyter"
> ~\Miniconda3\envs\testenvironment\python.exe -m notebook --version
> ~\Miniconda3\envs\testenvironment\python.exe -m notebook --version
> C:\Python27\python.exe -m notebook --version
> C:\Python27\python.exe -m notebook --version
> C:\Python27\python.exe -c "import notebook"
> C:\Python27\python.exe -c "import notebook"
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> ~\Miniconda3\envs\plantcv\python.exe -m jupyter notebook --version
> ~\Miniconda3\envs\plantcv\python.exe -m jupyter notebook --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m jupyter notebook --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m jupyter notebook --version
> ~\Miniconda3\envs\plantcv\python.exe -m notebook --version
> ~\Miniconda3\envs\plantcv\python.exe -m notebook --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m notebook --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m notebook --version
> ~\Miniconda3\python.exe -m jupyter notebook --version
> ~\Miniconda3\envs\testenvironment\python.exe -m jupyter kernelspec --version
> ~\Miniconda3\envs\testenvironment\python.exe -m jupyter kernelspec --version
> ~\Miniconda3\envs\testenvironment\python.exe -m kernelspec --version
> ~\Miniconda3\envs\testenvironment\python.exe -m kernelspec --version
> ~\Miniconda3\envs\testenvironment\python.exe -c "import kernelspec"
> ~\Miniconda3\envs\testenvironment\python.exe -c "import kernelspec"
> ~\Miniconda3\python.exe -m jupyter kernelspec --version
> C:\Python27\python.exe -m jupyter kernelspec --version
> C:\Python27\python.exe -m jupyter kernelspec --version
> ~\Miniconda3\envs\plantcv\python.exe -m jupyter kernelspec --version
> ~\Miniconda3\envs\plantcv\python.exe -m jupyter kernelspec --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m jupyter kernelspec --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m jupyter kernelspec --version
> ~\Miniconda3\envs\testenvironment\python.exe -m jupyter kernelspec --version
> ~\Miniconda3\envs\testenvironment\python.exe -m jupyter kernelspec --version
> C:\Python27\python.exe -c "import jupyter"
> C:\Python27\python.exe -c "import jupyter"
> C:\Python27\python.exe -m kernelspec --version
> C:\Python27\python.exe -m kernelspec --version
> ~\Miniconda3\envs\plantcv\python.exe -m kernelspec --version
> ~\Miniconda3\envs\plantcv\python.exe -m kernelspec --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m kernelspec --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m kernelspec --version
> ~\Miniconda3\envs\testenvironment\python.exe -m kernelspec --version
> ~\Miniconda3\envs\testenvironment\python.exe -m kernelspec --version
> C:\Python27\python.exe -c "import kernelspec"
> C:\Python27\python.exe -c "import kernelspec"
> ~\Miniconda3\envs\plantcv\python.exe -c "import kernelspec"
> ~\Miniconda3\envs\plantcv\python.exe -c "import kernelspec"
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -c "import kernelspec"
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -c "import kernelspec"
> ~\Miniconda3\envs\testenvironment\python.exe -c "import kernelspec"
> ~\Miniconda3\envs\testenvironment\python.exe -c "import kernelspec"
> ~\Miniconda3\python.exe -m jupyter kernelspec list
> ~\Miniconda3\python.exe -m jupyter kernelspec list
> ~\Miniconda3\python.exe -m jupyter notebook --no-browser --notebook-dir=C:\Users\dominikschneider\AppData\Local\Temp\7e4576ef-5b39-40cc-b72f-485cb60700eb --config=C:\Users\dominikschneider\AppData\Local\Temp\7e4576ef-5b39-40cc-b72f-485cb60700eb\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> ~\Miniconda3\python.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\datascience\getServerInfo.py
> ~\Miniconda3\python.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\datascience\getServerInfo.py
> ~\Miniconda3\envs\testenvironment\python.exe -m ipykernel --version
> ~\Miniconda3\envs\testenvironment\python.exe -m ipykernel --version
> ~\Miniconda3\python.exe -m ipykernel --version
> C:\Python27\python.exe -m ipykernel --version
> C:\Python27\python.exe -m ipykernel --version
> ~\Miniconda3\envs\plantcv\python.exe -m ipykernel --version
> ~\Miniconda3\envs\plantcv\python.exe -m ipykernel --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m ipykernel --version
> ~\Miniconda3\envs\plantcvmanuscript\python.exe -m ipykernel --version
> ~\Miniconda3\envs\testenvironment\python.exe -m ipykernel --version
> ~\Miniconda3\envs\testenvironment\python.exe -m ipykernel --version
> C:\Python27\python.exe -c "import ipykernel"
> C:\Python27\python.exe -c "import ipykernel"
> ~\Miniconda3\python.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\interpreterInfo.py
> ~\Miniconda3\python.exe c:\Users\dominikschneider\.vscode\extensions\ms-python.python-2019.10.41019\pythonFiles\interpreterInfo.py
> ~\Miniconda3\python.exe -m pip --version
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> c:/Users/dominikschneider/Miniconda3/Scripts/activate.bat env list
> ~\Miniconda3\python.exe -m jupyter notebook --version

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)

vscode-kernel-issue.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions