Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Python kernel completions #14813

Closed
joyceerhl opened this issue Nov 28, 2023 · 2 comments
Closed

No Python kernel completions #14813

joyceerhl opened this issue Nov 28, 2023 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@joyceerhl
Copy link
Contributor

Testing #14788

I have opted into the kernel experiment in settings and reloaded the window
I don't have Pylance installed
I'm on the latest Jupyter prerelease
I'm running locally on Windows
I have Python 3.11.6 and have run a cell to start the kernel
I don't see completions:
image

Logs

Visual Studio Code - Insiders (1.85.0-insider, undefined, desktop)
Jupyter Extension Version: 2023.11.1003342141.
Python Extension Version: 2023.21.13321011.
Pylance Extension not installed.
Platform: win32 (x64).
Workspace folder ~\Source\vscode, Home = c:\Users\huer
14:44:21.246 [info] L’utilisateur appartient au groupe d’expériences 'KernelCompletions'.
14:44:21.877 [info] Start refreshing Kernel Picker (1701211461877)
14:44:21.882 [info] Using Pylance
14:44:22.203 [info] Start refreshing Interpreter Kernel Picker
14:44:33.059 [error] The API registerRemoteServerProvider has being deprecated and will be removed soon, please use createJupyterServerCollection.
14:44:33.267 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd04ff2bacc70426793945b8328e8713b44899dbc76e039391d17eaaedc7e3a7346.~\AppData\Local\Microsoft\WindowsApps\python3.11.exe.~\AppData\Local\Microsoft\WindowsApps\python3.11.exe.-m#ipykernel_launcher  (Python Path: ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe, Unknown, 3.11.0) for '~\Source\vscode\extensions\vscode-api-tests\testWorkspace\test.ipynb' (disableUI=true)
14:44:36.131 [warn] Failed to get activated env vars for ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe in 696ms
14:44:36.307 [info] Process Execution: ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe -c "import site;print("USER_BASE_VALUE");print(site.USER_SITE);print("USER_BASE_VALUE");"
14:44:36.784 [warn] Failed to get activated env vars for ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe in 1300ms
14:44:37.465 [info] Process Execution: ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe -m pip list
14:44:37.563 [info] Process Execution: ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
14:44:37.706 [info] Process Execution: ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe ~\.vscode-insiders\extensions\ms-toolsai.jupyter-2023.11.1003342141-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 30748
    > cwd: ~\.vscode-insiders\extensions\ms-toolsai.jupyter-2023.11.1003342141-win32-x64\pythonFiles\vscode_datascience_helpers
14:44:38.670 [info] Process Execution: ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe -m ipykernel_launcher --f=~\AppData\Roaming\jupyter\runtime\kernel-v2-30748An7GwCVDEHcD.json
    > cwd: ~\Source\vscode\extensions\vscode-api-tests\testWorkspace
14:44:40.374 [info] End refreshing Kernel Picker (1701211461877)
14:44:43.656 [warn] StdErr from Kernel Process 0.02s - Debugger warning: It seems that frozen modules are being used, which may
14:44:43.656 [warn] StdErr from Kernel Process 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
14:44:44.770 [info] Process Execution: ~\AppData\Local\Microsoft\WindowsApps\python3.11.exe ~\.vscode-insiders\extensions\ms-toolsai.jupyter-2023.11.1003342141-win32-x64\pythonFiles\printJupyterDataDir.py
14:44:48.959 [info] Handle Execution of Cells 1 for ~\Source\vscode\extensions\vscode-api-tests\testWorkspace\test.ipynb
14:44:48.972 [info] Kernel acknowledged execution of cell 1 @ 1701211488971
14:44:48.980 [info] End cell 1 execution after 0.008s, completed @ 1701211488979, started @ 1701211488971
14:45:16.964 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:45:17.000 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:45:18.091 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:45:20.820 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:45:21.589 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:45:21.639 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:45:21.704 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:45:23.007 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:46:16.244 [info] Handle Execution of Cells 1 for ~\Source\vscode\extensions\vscode-api-tests\testWorkspace\test.ipynb
14:46:16.251 [info] Kernel acknowledged execution of cell 1 @ 1701211576250
14:46:16.257 [info] End cell 1 execution after 0.007s, completed @ 1701211576257, started @ 1701211576250
14:47:21.392 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:47:21.624 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:47:22.367 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:47:22.774 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:47:23.457 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:47:24.053 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:47:24.332 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:47:25.643 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14
14:47:41.580 [warn] Timeout waiting to inspect code in kernel e232835e-c21a-4fb9-9ca0-b855cade3e14

@DonJayamanne
Copy link
Contributor

@joyceerhl Please can you try enabling the following and then also enable verbose logging
"jupyter.enablePythonKernelLogging": true

  • Open settings & go into Jupyter->Logging
  • Change the value to verbose
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

Its likely the kernel is just slow to respond with the list of completions.
numpy is large package and its possible things are just slow.

Please replicate the issue and share the logs.
The logs will contain the requests sent to the Jupyter kernel and we can see whether we get completions back or not.

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster labels Nov 28, 2023
@DonJayamanne
Copy link
Contributor

Closing as this has been resolved since, if not please feel free to re-open this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants