Closed akdor1154 closed 3 years ago
Thanks for reporting this issue. I believe we have addressed this issue in our developement version of the extension. Please could you download & install the following VSIX (its our latest development version of the extension).
Please extract the zip file and install the VSIX. ms-toolsai-jupyter-insiders.vsix-dev.zip
If it doesn't please check the following:
Please could you enable logging as follows:
Jupyter->Logging
debug
Jupyter
output panel.Jupyter
outputNo luck with that visx sorry - i.e. i installed it but it doesn't change behaviour. I tested with code insiders.
Poetry doesn't appear in the list of interpreters but I don't expect it to because afaik this doesn't find kernelspecs. I'm referring to the list of kernels in the Interactive window (it doesn't appear there either, but I expect it to, hence this bug :) )
Thanks @akdor1154 The root cause here is the fact that the poetry interpreter cannot be found in the interpreter list. This list is provided by the python extension. Transferring the issue to their repo.
Closed in favor of https://github.com/microsoft/vscode-python/issues/8372
I have a custom jupyter kernel that runs
python
in the current Poetry-managed virtualenv, if there is one. Kernelspec:This works great in Jupyter Notebook (i.e.
pip install notebook; jupyter notebook .
). VSCode doesn't even show it in its kernel list..py
fileEnvironment data
python.languageServer
setting: JediOutput for
``` User belongs to experiment group 'ShowPlayIcon - start' User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled' 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 'AA_testing - control' User belongs to experiment group 'LocalZMQKernel - experiment' 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 'RunByLine - experiment' User belongs to experiment group 'CustomEditorSupport - control' User belongs to experiment group 'pythonaacf' User belongs to experiment group 'pythonSendEntireLineToREPLcf' > conda --version > pyenv root > python3.7 ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python3.6 ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python3 ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python2 ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > conda info --json Python interpreter path: ./.venv/bin/python Starting Jedi Python language engine. > conda env list > conda --version Error 2020-12-10 17:04:46: Failed to get conda environment list from conda [Error: spawn conda ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:81:21)] { errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn conda', path: 'conda', spawnargs: [ 'env', 'list' ] } > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)" cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)" cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py site --user-site cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py site --user-site cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --strict --check-untyped-defs --disallow-untyped-calls ~/src/ow/fa/analyses/scratch/proportion_instore.py cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --strict --check-untyped-defs --disallow-untyped-calls ~/src/ow/fa/analyses/scratch/proportion_instore.py cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --strict --check-untyped-defs --disallow-untyped-calls ~/src/ow/fa/analyses/scratch/tagWhitelistPreprocessor/setup.py cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --strict --check-untyped-defs --disallow-untyped-calls ~/src/ow/fa/analyses/scratch/tagWhitelistPreprocessor/setup.py cwd: ~/src/ow/fa/analyses/scratch > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/completion.py > ~/src/ow/fa/analyses/scratch/.venv/bin/python ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/pyvsc-run-isolated.py ~/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/completion.py Error 2020-12-10 17:04:47: stderr jediProxy Error (stderr) /home/jarrad/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/completion.py:584: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead. jedi.api.names( ##########Linting Output - mypy########## Success: no issues found in 1 source file ##########Linting Output - mypy########## Success: no issues found in 1 source file Error 2020-12-10 17:07:19: stderr jediProxy Error (stderr) /home/jarrad/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/completion.py:592: DeprecationWarning: Providing the line is now done in the functions themselves like `Script(...).complete(line, column)` script = jedi.Script( /home/jarrad/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/completion.py:592: DeprecationWarning: Providing the column is now done in the functions themselves like `Script(...).complete(line, column)` script = jedi.Script( Error 2020-12-10 17:07:19: stderr jediProxy Error (stderr) /home/jarrad/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/completion.py:592: DeprecationWarning: Deprecated since version 0.17.0. Use the project API instead, which means Script(project=Project(dir, sys_path=sys_path)) instead. script = jedi.Script( /home/jarrad/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/completion.py:626: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).infer instead. script.goto_definitions(), request["id"] Starting Jedi Python language engine. ```Python
in theOutput
panel