microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 294 forks source link

input and print logical error #15595

Open xiezhipeng-git opened 7 months ago

xiezhipeng-git commented 7 months ago

Does this issue occur when all extensions are disabled?: Yes/No

  1. in .ipynb file run test_input()
  2. input 1,2,3,4,5,6 one times one number
  3. it show result print(user_input) sometimes 1number is true.But some times zero or two.It is error
DonJayamanne commented 7 months ago

Please could you enable logging as follows:

xiezhipeng-git commented 7 months ago
Show Logs ``` Visual Studio Code (1.88.1, undefined, desktop) Jupyter Extension Version: 2024.3.1. Python Extension Version: 2024.4.1. Pylance Extension Version: 2024.4.105. Platform: win32 (x64). Workspace folder d:\my\work\test\python_test, Home = c:\Users\Admin 11:43:03.628 [debug] Start refreshing Kernel Picker (1714448583628) 11:43:03.637 [debug] Search for KernelSpecs in Interpreter d:\my\env\python3.10.10\python.exe 11:43:03.638 [debug] Get Custom Env Variables, Class name = Jm, completed in 10ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode" 11:43:03.638 [debug] Jupyter Paths kernels: 11:43:03.638 [debug] Kernel Spec Root Paths, ~\AppData\Roaming\jupyter\kernels, c:\ProgramData\jupyter\kernels 11:43:03.651 [debug] No controller, hence notebook communications cannot be initialized for editor d:\my\work\test\python_test\encode.ipynb 11:43:03.651 [debug] Start refreshing Interpreter Kernel Picker 11:43:03.730 [debug] KernelProvider switched kernel to id = .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher 11:43:03.730 [debug] start the kernel, options.disableUI=true for d:\my\work\test\python_test\encode.ipynb 11:43:03.735 [debug] Registering commtarget jupyter.widget 11:43:03.735 [debug] Controller selection change completed 11:43:03.737 [debug] Get Custom Env Variables, Class name = Jm, completed in 0ms, has a truthy return value, Arg 1: "/d:/my/work/test/python_test", Arg 2: "RunPythonCode" 11:43:03.737 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher (Python Path: d:\my\env\python3.10.10\python.exe, Unknown, Python 3.10.10, 3.10.10) for 'd:\my\work\test\python_test\encode.ipynb' (disableUI=true) 11:43:03.738 [debug] Creating raw notebook for resource 'd:\my\work\test\python_test\encode.ipynb' 11:43:03.753 [debug] Get Custom Env Variables, Class name = Jm, completed in 0ms, has a truthy return value, Arg 1: "/d:/my/work/test/python_test/encode.ipynb", Arg 2: "RunPythonCode" 11:43:03.851 [debug] Launching kernel .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher for d:\my\work\test\python_test\encode.ipynb in d:\my\work\test\python_test with ports 9001, 9000, 9004, 9002, 9003 11:43:03.854 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 116ms 11:43:03.854 [debug] Create ProcessService, Class name = qm (started execution), Arg 1: undefined 11:43:03.855 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 102ms 11:43:03.856 [debug] Get Custom Env Variables, Class name = Jm, completed in 2ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode", Arg 3: undefined 11:43:03.856 [debug] Create ProcessService, Class name = qm, completed in 2ms, has a truthy return value, Arg 1: undefined 11:43:03.861 [info] Process Execution: d:\my\env\python3.10.10\python.exe -c "import site;print("USER_BASE_VALUE");print(site.USER_SITE);print("USER_BASE_VALUE");" 11:43:03.863 [debug] Conda file is conda 11:43:03.864 [debug] Refreshed Environments 11:43:03.896 [debug] USER_SITE for d:\my\env\python3.10.10\python.exe is ~\AppData\Roaming\Python\Python310\Scripts 11:43:03.896 [debug] Prepend PATH with user site path for d:\my\env\python3.10.10\python.exe, user site ~\AppData\Roaming\Python\Python310\Scripts 11:43:03.896 [debug] Prepend PATH with python bin for d:\my\env\python3.10.10\python.exe 11:43:03.896 [debug] Activated Env Variables for d:\my\env\python3.10.10\python.exe, PATH value is d:\my\env\python3.10.10;~\AppData\Roaming\Python\Python310\Scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin and Path value is d:\my\env\python3.10.10;~\AppData\Roaming\Python\Python310\Scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin 11:43:03.896 [debug] Prepend PATH with user site path for d:\my\env\python3.10.10\python.exe, user site ~\AppData\Roaming\Python\Python310\Scripts 11:43:03.896 [debug] Prepend PATH with python bin for d:\my\env\python3.10.10\python.exe 11:43:03.896 [debug] Activated Env Variables for d:\my\env\python3.10.10\python.exe, PATH value is d:\my\env\python3.10.10;~\AppData\Roaming\Python\Python310\Scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin and Path value is d:\my\env\python3.10.10;~\AppData\Roaming\Python\Python310\Scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin 11:43:03.896 [debug] Getting activated env variables, Class name = Pp, completed in 159ms, has a truthy return value, Arg 1: "/d:/my/work/test/python_test", Arg 2: "D:\\MY\\ENV\\PYTHON3.10.10\\PYTHON.EXE", Arg 3: undefined 11:43:03.896 [debug] Getting activated env variables, Class name = Pp, completed in 143ms, has a truthy return value, Arg 1: "/d:/my/work/test/python_test/encode.ipynb", Arg 2: "D:\\MY\\ENV\\PYTHON3.10.10\\PYTHON.EXE", Arg 3: undefined 11:43:03.901 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m pip list 11:43:03.907 [info] Process Execution: d:\my\env\python3.10.10\python.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)" 11:43:03.907 [debug] Kernel Env Variables for ~\.vscode\extensions\ms-toolsai.jupyter-2024.3.1-win32-x64\temp\jupyter\kernels\python31010jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71\kernel.json, PATH value is d:\my\env\python3.10.10;~\AppData\Roaming\Python\Python310\Scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin 11:43:03.913 [info] Process Execution: d:\my\env\python3.10.10\python.exe ~\.vscode\extensions\ms-toolsai.jupyter-2024.3.1-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 10188 > cwd: ~\.vscode\extensions\ms-toolsai.jupyter-2024.3.1-win32-x64\pythonFiles\vscode_datascience_helpers 11:43:04.024 [debug] Got a response of 1996 for INITIALIZE_INTERRUPT:0 11:43:04.030 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m ipykernel_launcher --f=~\AppData\Roaming\jupyter\runtime\kernel-v2-10188uDKuf1fBrRtb.json > cwd: d:\my\work\test\python_test 11:43:04.030 [debug] Kernel process 14996. 11:43:04.088 [debug] ipykernel version & path 6.29.4, d:\my\env\python3.10.10\lib\site-packages\ipykernel\__init__.py for d:\my\env\python3.10.10\python.exe 11:43:04.211 [debug] creating new code watcher with matching document file:///d%3A/my/work/test/python_test/test.py 11:43:04.495 [debug] Kernel output: NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. To exit, you will have to explicitly quit this process, by either sending "quit" from a client, or using Ctrl-\ in UNIX-like environments. To read more about this, see https://github.com/ipython/ipython/issues/2049 To connect another client to this kernel, use: --existing ~\AppData\Roaming\jupyter\runtime\kernel-v2-10188uDKuf1fBrRtb.json 11:43:04.668 [debug] Waiting for Raw Session to be ready in postStartRawSession 11:43:04.668 [debug] Waiting for Raw session to be ready, status: connected 11:43:04.668 [debug] Raw session connected 11:43:04.668 [debug] Waiting for Raw session to be ready 11:43:04.668 [debug] Waited for Raw session to be ready & got status: connected 11:43:04.668 [debug] Successfully waited for Raw Session to be ready in postStartRawSession 11:43:04.668 [debug] Kernel status is 'unknown' before requesting kernel info and after ready 11:43:04.668 [debug] Sending request for kernelInfo 11:43:04.679 [debug] Got response for requestKernelInfo 11:43:04.679 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 11ms 11:43:04.680 [debug] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys 11:43:04.689 [debug] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s) 11:43:04.689 [debug] Started running kernel initialization for d:\my\work\test\python_test\encode.ipynb 11:43:04.690 [debug] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy 11:43:04.736 [debug] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s) 11:43:04.736 [debug] Determined IPyWidgets Version as 8 11:43:04.736 [debug] Version of IPyWidgets 8 determined after 1.001s 11:43:04.737 [debug] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): 11:43:04.753 [debug] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 1 output(s) 11:43:04.753 [debug] Requesting Kernel info 11:43:04.754 [debug] Got Kernel info 11:43:04.754 [debug] End running kernel initialization, now waiting for idle 11:43:04.754 [debug] Waiting for idle on (kernel): fcae76be-025a-4afe-a8e4-037169a1543e -> idle 11:43:04.754 [debug] Finished waiting for idle on (kernel): fcae76be-025a-4afe-a8e4-037169a1543e -> idle 11:43:04.754 [debug] End running kernel initialization, session is idle 11:43:04.756 [debug] Registering Kernel Completion Provider from kernel Python 3.10.10 for language python 11:43:04.756 [debug] IPyWidgetScriptSource.initialize 11:43:04.758 [debug] getDataDirsImpl, Class name = Br (started execution), Arg 1: "/d:/my/work/test/python_test/encode.ipynb", Arg 2: "D:\\MY\\ENV\\PYTHON3.10.10\\PYTHON.EXE" 11:43:04.759 [debug] Get Custom Env Variables, Class name = Jm, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode" 11:43:04.759 [debug] Jupyter Paths : 11:43:04.765 [info] Process Execution: d:\my\env\python3.10.10\python.exe ~\.vscode\extensions\ms-toolsai.jupyter-2024.3.1-win32-x64\pythonFiles\printJupyterDataDir.py 11:43:04.800 [debug] getDataDirsImpl, Class name = Br, completed in 41ms, has a truthy return value, Arg 1: "/d:/my/work/test/python_test/encode.ipynb", Arg 2: "D:\\MY\\ENV\\PYTHON3.10.10\\PYTHON.EXE", Return Value: /AppData/Roaming/Python/share/jupyter>, /AppData/Roaming/jupyter>, , 11:43:04.873 [debug] End refreshing Kernel Picker (1714448583628) 11:43:05.262 [debug] Web view is ready to receive widget messages 11:43:05.263 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager 11:43:05.263 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions 11:43:05.267 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/c%3A/Users//.vscode/extensions/ms-toolsai.jupyter-2024.3.1-win32-x64/temp/scripts/c1448ee990f1e2327aee6423b60d380730cb6f96db29818006120e19dc2233aa/jupyter 11:43:05.267 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager 11:43:05.267 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions 11:43:05.267 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/c%3A/Users//.vscode/extensions/ms-toolsai.jupyter-2024.3.1-win32-x64/temp/scripts/c1448ee990f1e2327aee6423b60d380730cb6f96db29818006120e19dc2233aa/jupyter 11:43:42.805 [debug] creating new code watcher with matching document file:///d%3A/my/work/test/python_test/input_test.py 11:44:12.181 [debug] No controller, hence notebook communications cannot be initialized for editor d:\my\work\test\python_test\input_test.ipynb 11:44:23.471 [info] Handle Execution of Cells 0 for d:\my\work\test\python_test\input_test.ipynb 11:44:23.473 [debug] start the kernel, options.disableUI=false for d:\my\work\test\python_test\input_test.ipynb 11:44:23.473 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher (Python Path: d:\my\env\python3.10.10\python.exe, Unknown, Python 3.10.10, 3.10.10) for 'd:\my\work\test\python_test\input_test.ipynb' (disableUI=false) 11:44:23.474 [debug] Creating raw notebook for resource 'd:\my\work\test\python_test\input_test.ipynb' 11:44:23.474 [debug] KernelProvider switched kernel to id = .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher 11:44:23.475 [debug] Registering commtarget jupyter.widget 11:44:23.475 [debug] Controller selection change completed 11:44:23.476 [debug] Get Custom Env Variables, Class name = Jm, completed in 0ms, has a truthy return value, Arg 1: "/d:/my/work/test/python_test/input_test.ipynb", Arg 2: "RunPythonCode" 11:44:23.493 [debug] Launching kernel .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher for d:\my\work\test\python_test\input_test.ipynb in d:\my\work\test\python_test with ports 9006, 9005, 9009, 9007, 9008 11:44:23.498 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 22ms 11:44:23.498 [debug] Prepend PATH with user site path for d:\my\env\python3.10.10\python.exe, user site ~\AppData\Roaming\Python\Python310\Scripts 11:44:23.498 [debug] Prepend PATH with python bin for d:\my\env\python3.10.10\python.exe 11:44:23.499 [debug] Activated Env Variables for d:\my\env\python3.10.10\python.exe, PATH value is d:\my\env\python3.10.10;~\AppData\Roaming\Python\Python310\Scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin and Path value is d:\my\env\python3.10.10;~\AppData\Roaming\Python\Python310\Scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin 11:44:23.499 [debug] Getting activated env variables, Class name = Pp, completed in 23ms, has a truthy return value, Arg 1: "/d:/my/work/test/python_test/input_test.ipynb", Arg 2: "D:\\MY\\ENV\\PYTHON3.10.10\\PYTHON.EXE", Arg 3: undefined 11:44:23.504 [info] Process Execution: d:\my\env\python3.10.10\python.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)" 11:44:23.504 [debug] Kernel Env Variables for ~\.vscode\extensions\ms-toolsai.jupyter-2024.3.1-win32-x64\temp\jupyter\kernels\python31010jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71\kernel.json, PATH value is d:\my\env\python3.10.10;~\AppData\Roaming\Python\Python310\Scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp;;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;D:\my\env\python3.10.10\Scripts\;D:\my\env\python3.10.10\;D:\my\env\python3.11.2\Scripts\;D:\my\env\python3.11.2\;D:\Program Files\Git LFS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\Bandizip\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include;D:\my\env\Git LFS;C:\Program Files\OpenSSH\;C:\windows\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\Program Files\PowerShell\7\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.1.1\;~\AppData\Local\Microsoft\WindowsApps;;D:\my\program\Microsoft VS Code\bin 11:44:23.505 [debug] Got a response of 2436 for INITIALIZE_INTERRUPT:1 11:44:23.510 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m ipykernel_launcher --f=~\AppData\Roaming\jupyter\runtime\kernel-v2-10188DW70sN35CIPT.json > cwd: d:\my\work\test\python_test 11:44:23.510 [debug] Kernel process 2888. 11:44:23.656 [debug] ipykernel version & path 6.29.4, d:\my\env\python3.10.10\lib\site-packages\ipykernel\__init__.py for d:\my\env\python3.10.10\python.exe 11:44:23.956 [debug] Kernel output: NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. To exit, you will have to explicitly quit this process, by either sending "quit" from a client, or using Ctrl-\ in UNIX-like environments. To read more about this, see https://github.com/ipython/ipython/issues/2049 To connect another client to this kernel, use: --existing ~\AppData\Roaming\jupyter\runtime\kernel-v2-10188DW70sN35CIPT.json 11:44:24.125 [debug] Waiting for Raw Session to be ready in postStartRawSession 11:44:24.125 [debug] Waiting for Raw session to be ready, status: connected 11:44:24.125 [debug] Raw session connected 11:44:24.125 [debug] Waiting for Raw session to be ready 11:44:24.125 [debug] Waited for Raw session to be ready & got status: connected 11:44:24.125 [debug] Successfully waited for Raw Session to be ready in postStartRawSession 11:44:24.125 [debug] Kernel status is 'unknown' before requesting kernel info and after ready 11:44:24.125 [debug] Sending request for kernelInfo 11:44:24.132 [debug] Got response for requestKernelInfo 11:44:24.132 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 7ms 11:44:24.132 [debug] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys 11:44:24.152 [debug] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s) 11:44:24.152 [debug] Started running kernel initialization for d:\my\work\test\python_test\input_test.ipynb 11:44:24.152 [debug] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy 11:44:24.200 [debug] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s) 11:44:24.200 [debug] Determined IPyWidgets Version as 8 11:44:24.200 [debug] Version of IPyWidgets 8 determined after 0.725s 11:44:24.201 [debug] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): 11:44:24.216 [debug] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 1 output(s) 11:44:24.216 [debug] Requesting Kernel info 11:44:24.216 [debug] Got Kernel info 11:44:24.216 [debug] End running kernel initialization, now waiting for idle 11:44:24.216 [debug] Waiting for idle on (kernel): 3bfe16a1-d8c4-4c8f-a37f-3b3a114db225 -> idle 11:44:24.216 [debug] Finished waiting for idle on (kernel): 3bfe16a1-d8c4-4c8f-a37f-3b3a114db225 -> idle 11:44:24.217 [debug] End running kernel initialization, session is idle 11:44:24.217 [debug] Registering Kernel Completion Provider from kernel Python 3.10.10 for language python 11:44:24.217 [debug] IPyWidgetScriptSource.initialize 11:44:24.219 [debug] Cell Index:0 sent to kernel 11:44:24.225 [debug] Start cell 0 execution @ 1714448664225 (clear output) 11:44:24.225 [debug] Kernel acknowledged execution of cell 0 @ 1714448664225 11:44:24.233 [info] Cell 0 completed in 0.007s (start: 1714448664225, end: 1714448664232) 11:44:24.233 [debug] Cell 0 executed successfully 11:44:24.734 [debug] Web view is ready to receive widget messages 11:44:24.737 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager 11:44:24.737 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions 11:44:24.742 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/c%3A/Users//.vscode/extensions/ms-toolsai.jupyter-2024.3.1-win32-x64/temp/scripts/c1448ee990f1e2327aee6423b60d380730cb6f96db29818006120e19dc2233aa/jupyter 11:44:24.743 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager 11:44:24.743 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions 11:44:24.743 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/c%3A/Users//.vscode/extensions/ms-toolsai.jupyter-2024.3.1-win32-x64/temp/scripts/c1448ee990f1e2327aee6423b60d380730cb6f96db29818006120e19dc2233aa/jupyter 11:44:28.194 [info] Handle Execution of Cells 1 for d:\my\work\test\python_test\input_test.ipynb 11:44:28.194 [debug] Cell Index:1 sent to kernel 11:44:28.196 [debug] Start cell 1 execution @ 1714448668196 (clear output) 11:44:28.196 [debug] Kernel acknowledged execution of cell 1 @ 1714448668196 11:44:47.609 [info] Cell 1 completed in 19.413s (start: 1714448668196, end: 1714448687609) 11:44:47.609 [debug] Cell 1 executed successfully 11:44:52.400 [debug] Executing silently Code (idle) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info 11:44:52.400 [debug] Executing silently Code (idle) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info 11:44:52.433 [debug] Executing silently Code (completed) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info with 1 output(s) 11:44:52.465 [debug] Executing silently Code (completed) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info with 1 output(s) ```

In tihs input 6 show zero 7 two

DonJayamanne commented 7 months ago

@xiezhipeng-git From the logs you seem to be running two notebooks or starting the kernel multiple times. Also in the file input_test.ipynb you seem to have two cells. Please can you test this again and run just one notebook and ensure the notebook has just one cell.

DonJayamanne commented 7 months ago

Is it possible to attach a screen recording of the issue, you can use gifcap.dev or similar.

xiezhipeng-git commented 6 months ago

![Uploading Recording 2024-05-04 at 21.10.45.gif…]()

In this times.7 is 0 8 is two. In all tims.It has {20% is 0num} next {99% 2num , %1 0num ) next {1num,3num} it seems 20% will loss in this input

xiezhipeng-git commented 6 months ago

@xiezhipeng-git From the logs you seem to be running two notebooks or starting the kernel multiple times. Also in the file you seem to have two cells. Please can you test this again and run just one notebook and ensure the notebook has just one cell.input_test.ipynb

the two maybe is I try windows and wsl. then this error in windows and wsl (linux) And the file named input_test.ipynb is only one file.It is I make to show this error.The path D:\my\work\test\python_test\input_test.ipynb it only windows path And one cell and two cell.Has the same error.

DonJayamanne commented 6 months ago

The recording wasn’t uploaded

xiezhipeng-git commented 6 months ago

![Uploading Recording 2024-05-05 at 22.40.32.gif…]() In this 1 2 3 3 loss 4 q Goodbye! And this error is not related to the speed of input. Because sometimes I enter a lot of content and still get the same error.

xiezhipeng-git commented 6 months ago

@DonJayamanne I can't seem to upload successfully, even with or without a VPN. Could it be because the file has spaces? You try git clone https://github.com/xiezhipeng-git/vscode_input_error_show

DonJayamanne commented 4 months ago

Please could you enable logging as follows:

vs-code-engineering[bot] commented 4 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

xiezhipeng-git commented 4 months ago

The issue has not been resolved. And I provided the project address and error recording. Why do you have to close it if you don't try it yourself

DonJayamanne commented 4 months ago

Why do you have to close it if you don't try it yourself

I did try this and wasn’t able to replicate this issues Hence the reason I asked for more information see here https://github.com/microsoft/vscode-jupyter/issues/15595#issuecomment-2241903638

Information wasn’t provided hence this got closed automatically

Please can you provide the information requested

xiezhipeng-git commented 3 months ago

QQ_1722606778643

there is no verbose And this problem occurs with probability. So we can only try multiple times. Although the probability of error is quite high this problem is quite high. the trace log

21:45:53.113 [debug] Handle Execution of Cells 1 for d:\my\work\test\python_test\input_test.ipynb
21:45:53.113 [trace] Cell Index:1 sent to kernel
21:45:53.115 [trace] Start cell 1 execution @ 1722606353115 (clear output)
21:45:53.115 [debug] Kernel acknowledged execution of cell 1 @ 1722606353115
21:45:58.327 [trace] Cell 1 completed in 5.211s (start: 1722606353115, end: 1722606358326)
21:45:58.327 [trace] Cell 1 executed successfully
21:46:00.153 [debug] Handle Execution of Cells 1 for d:\my\work\test\python_test\input_test.ipynb
21:46:00.153 [trace] Cell Index:1 sent to kernel
21:46:00.155 [trace] Start cell 1 execution @ 1722606360155 (clear output)
21:46:00.156 [debug] Kernel acknowledged execution of cell 1 @ 1722606360155
21:46:20.733 [trace] Cell 1 completed in 20.578s (start: 1722606360155, end: 1722606380733)
21:46:20.734 [trace] Cell 1 executed successfully
21:47:03.860 [trace] Executing silently Code (idle) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info
21:47:03.861 [trace] Executing silently Code (idle) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info
21:47:03.884 [trace] Executing silently Code (completed) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info with 1 output(s)
21:47:03.916 [trace] Executing silently Code (completed) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info with 1 output(s)

And the content is probability display loss. The input and display are not synchronized. It is necessary to record the time when the output ends. The current log may not show where exactly is wrong

vs-code-engineering[bot] commented 1 month ago

Hey @DonJayamanne, this issue might need further attention.

@xiezhipeng-git, you can help us out by closing this issue if the problem no longer exists, or adding more information.

DonJayamanne commented 1 month ago

Please enable trace logging and please share all of the logs.

xiezhipeng-git commented 1 month ago

The log above is the log when enable trace is enabled.