microsoft / vscode-jupyter

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

Debug cell next line position wrong + subsequent failure to debug #8061

Closed kwikwag closed 3 years ago

kwikwag commented 3 years ago

Environment data

Expected behaviour

When clicking 'Debug Cell' in a Python cell-mode editor, the next line to be executed should be highlighted.

Actual behaviour

There is an offset problem, and the highlighted line is shifted to the top. On longer files, it usually starts all the way at the top, at the 3rd line of the 1st cell in the file. Once the debug session ends (either disconnect or the cell completes), when I try to debug the cell again, it doesn't connect to the debugger (the debug bar appears but it doesn't pause and doesn't run). Hitting 'Disconnect' pops up the message 'Canceled'. Finally, if I disconnect again and then try again, it doesn't even start the debugging session, and only pops up the message 'Canceled'.

I've had it suddenly work, then not work, then work again on the sample file I made the recording of (thought it happened after the recording which demonstrates it only not working). In my longer actual notebook (private code, different conda environment), I simply cannot debug with the same symptoms. When I debug cell 2 first thing, without running any other cells first, the line position is OK.

Steps to reproduce:

  1. Open an empty folder and create a new file main.py:
    
    #%%
    from pathlib import Path

%%

list(Path('.').iterdir())


2. Run the first cell
3. Hit `Debug Cell` above the second cell. The highlighted line with be line 3 in the file (a blank line) instead of line 5.
4. Disconnect the debugger. Hit 'Debug cell' above the second cell again. The debugger will not connect. Disconnect the debugger, a pop up saying 'Canceled' will appear.
5. Disconnect the debugger again. Hit 'Debug cell' above the second cell again. Nothing happens except for a pop up saying 'Canceled'.
6. Try to run any cell.  Nothing happens except for a pop up saying 'Canceled'.
7. Close the interactive window. Hit 'Debug cell' above the second cell again. The highlighted line will be line 5 as it should be. However, this is unhelpful as we need the previous cells to run first!

![recording](https://user-images.githubusercontent.com/392199/138960070-ac429616-a18f-4e72-9191-95c7383626a2.gif)

In the recording I am installing IPython fresh. I also had the Just My Code debug setting turned off, and then I turned it on. However, the problem reproduced also when I restarted VS code, and the problem happens on another conda environment which had IPython installed long before a system restart.

## Logs

<details>

<summary>Output for <code>Jupyter</code> in the <code>Output</code> panel </summary>

<p>

Info 2021-10-26 23:35:49: Experimentation service retrieved: [object Object] User belongs to experiment group 'jupyterTestcf' User belongs to experiment group 'jupyterEnhancedDataViewer' Info 2021-10-26 23:35:49: ZMQ install verified. Info 2021-10-26 23:35:59: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]} Info 2021-10-26 23:35:59: Starting interactive window with controller ID ms-toolsai.jupyter/.jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher (Interactive) Info 2021-10-26 23:35:59: Setting setActiveController for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:35:59: Intiailize notebook communications for editor vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:35:59: Resolving notebook UI Comms (resolve) for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:35:59: initialize CommonMessageCoordinator Info 2021-10-26 23:35:59: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:35:59: Created and initailized CommonMessageCoordinator Info 2021-10-26 23:35:59: Attach Coordinator for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:35:59: Loading kernelspec from C:\Users\xxmyuserxx\Apps\miniconda3\share\jupyter\kernels\python3\kernel.json for C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:35:59: Loading kernelspec from C:\Users\xxmyuserxx\Apps\miniconda3\envs\numa\share\jupyter\kernels\python3\kernel.json for C:\Users\xxmyuserxx\Apps\miniconda3\envs\numa\python.exe Info 2021-10-26 23:35:59: Starting Notebook in kernel.ts id = .jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher Info 2021-10-26 23:35:59: Creating raw notebook for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:35:59: Getting preferred kernel for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:35:59: Computing working directory vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:35:59: Hiding default kernel spec Python 3 (ipykernel), C:/Users/xxmyuserxx/Apps/miniconda3/envs/numa\python.exe Info 2021-10-26 23:35:59: Hiding default kernel spec Python 3 (ipykernel), C:/Users/xxmyuserxx/Apps/miniconda3\python.exe Info 2021-10-26 23:35:59: Connecting to raw session for vscode-interactive:Interactive-1.interactive with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"interpreterPath":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","name":"python395jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.5 64-bit ('base': conda)","metadata":{"interpreter":{"sysPrefix":"C:\Users\xxmyuserxx\Apps\miniconda3","envType":"Conda","envName":"base","envPath":"C:\Users\xxmyuserxx\Apps\miniconda3","path":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","architecture":3,"sysVersion":"3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.5","major":3,"minor":9,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.5 64-bit ('base': conda)"}},"env":{}},"interpreter":{"sysPrefix":"C:\Users\xxmyuserxx\Apps\miniconda3","envType":"Conda","envName":"base","envPath":"C:\Users\xxmyuserxx\Apps\miniconda3","path":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","architecture":3,"sysVersion":"3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.5","major":3,"minor":9,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.5 64-bit ('base': conda)"},"id":".jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher"} Info 2021-10-26 23:35:59: Starting raw kernel Python 3.9.5 64-bit ('base': conda) Info 2021-10-26 23:35:59: installMissingDependencies C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:01: Process Execution: > ~\Apps\miniconda3\python.exe -m pip list

~\Apps\miniconda3\python.exe -m pip list Info 2021-10-26 23:36:01: Process Execution: > ~\Apps\miniconda3\python.exe -c "import ipykernel" ~\Apps\miniconda3\python.exe -c "import ipykernel" Info 2021-10-26 23:36:01: Process Execution: > ~\Apps\miniconda3\envs\numa\python.exe -c "import jupyter" ~\Apps\miniconda3\envs\numa\python.exe -c "import jupyter" Info 2021-10-26 23:36:01: Process Execution: > ~\Apps\miniconda3\envs\numa\python.exe -c "import notebook" ~\Apps\miniconda3\envs\numa\python.exe -c "import notebook" Info 2021-10-26 23:36:02: Install Missing Dependencies, Class name = S, completed in 2203ms, has a falsy return value, Return Value: undefined Info 2021-10-26 23:36:02: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000 Info 2021-10-26 23:36:02: Launching kernel daemon for Python 3.9.5 64-bit ('base': conda) # C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:02: Process Execution: > ~\Apps\miniconda3\envs\numa\python.exe -m jupyter kernelspec --version ~\Apps\miniconda3\envs\numa\python.exe -m jupyter kernelspec --version Info 2021-10-26 23:36:03: Creating daemon pool for C:\Users\xxmyuserxx\Apps\miniconda3\envs\numa\python.exe with env variables count 65 Info 2021-10-26 23:36:03: Process Execution: > ~\Apps\miniconda3\envs\numa\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v ~\Apps\miniconda3\envs\numa\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v Info 2021-10-26 23:36:03: Process Execution: > ~\Apps\miniconda3\envs\numa\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v ~\Apps\miniconda3\envs\numa\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v Info 2021-10-26 23:36:03: Process Execution: > ~\Apps\miniconda3\envs\numa\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v ~\Apps\miniconda3\envs\numa\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v Info 2021-10-26 23:36:03: Creating daemon process for C:\Users\xxmyuserxx\Apps\miniconda3\python.exe with env variables count 64 Info 2021-10-26 23:36:03: Process Execution: > ~\Apps\miniconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v ~\Apps\miniconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v Info 2021-10-26 23:36:03: Starting kernel from scratch with options {"env":{"ALLUSERSPROFILE":"C:\ProgramData","APPDATA":"C:\Users\xxmyuserxx\AppData\Roaming","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"true","CHROME_CRASHPAD_PIPE_NAME":"\\.\pipe\crashpad_5976_BQNROCVLDAAAAEWH","CommonProgramFiles":"C:\Program Files\Common Files","CommonProgramFiles(x86)":"C:\Program Files (x86)\Common Files","CommonProgramW6432":"C:\Program Files\Common Files","COMPUTERNAME":"LAPTOP-ANONYMOU","ComSpec":"C:\Windows\system32\cmd.exe","DriverData":"C:\Windows\System32\Drivers\DriverData","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","HOMEDRIVE":"C:","HOMEPATH":"\Users\xxmyuserxx","LOCALAPPDATA":"C:\Users\xxmyuserxx\AppData\Local","LOGONSERVER":"\\LAPTOP-ANONYMOU","NUMBER_OF_PROCESSORS":"12","OneDrive":"C:\Users\xxmyuserxx\OneDrive","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","Path":"C:\Users\xxmyuserxx\Apps\miniconda3;C:\Users\xxmyuserxx\Apps\miniconda3\Library\mingw-w64\bin;C:\Users\xxmyuserxx\Apps\miniconda3\Library\usr\bin;C:\Users\xxmyuserxx\Apps\miniconda3\Library\bin;C:\Users\xxmyuserxx\Apps\miniconda3\Scripts;C:\Users\xxmyuserxx\Apps\miniconda3\bin;C:\Users\xxmyuserxx\Apps\miniconda3\condabin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Users\xxmyuserxx\AppData\Local\Microsoft\WindowsApps;.;C:\Users\xxmyuserxx\AppData\Local\Programs\Microsoft VS Code\bin","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"AMD64 Family 23 Model 104 Stepping 1, AuthenticAMD","PROCESSOR_LEVEL":"23","PROCESSOR_REVISION":"6801","ProgramData":"C:\ProgramData","ProgramFiles":"C:\Program Files","ProgramFiles(x86)":"C:\Program Files (x86)","ProgramW6432":"C:\Program Files","PSModulePath":"C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules","PUBLIC":"C:\Users\Public","SESSIONNAME":"Console","SystemDrive":"C:","SystemRoot":"C:\Windows","TEMP":"C:\Users\xxmyuserxx\AppData\Local\Temp","TMP":"C:\Users\xxmyuserxx\AppData\Local\Temp","USERDOMAIN":"LAPTOP-ANONYMOU","USERDOMAIN_ROAMINGPROFILE":"LAPTOP-ANONYMOU","USERNAME":"xxmyuserxx","USERPROFILE":"C:\Users\xxmyuserxx","VSCODE_AMD_ENTRYPOINT":"vs/workbench/services/extensions/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"C:\Users\xxmyuserxx\AppData\Roaming\Code\CachedData\54e29adf4ed41a691df8b8c55f19b817d8b76040","VSCODE_CWD":"C:\Users\xxmyuserxx\AppData\Local\Programs\Microsoft VS Code","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\.\pipe\2d46366c6c72968426944b3e7fa15245-1.61.2-main-sock","VSCODE_IPC_HOOK_EXTHOST":"\\.\pipe\vscode-ipc-fbb4818d-b9e5-4424-943b-65f7996a6189-sock","VSCODE_LOG_NATIVE":"false","VSCODE_LOG_STACK":"false","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"5976","VSCODE_PIPE_LOGGING":"true","VSCODE_VERBOSE_LOGGING":"true","windir":"C:\Windows","COMMONPROGRAMFILES":"C:\Program Files\Common Files","COMMONPROGRAMFILES(X86)":"C:\Program Files (x86)\Common Files","COMMONPROGRAMW6432":"C:\Program Files\Common Files","COMSPEC":"C:\Windows\system32\cmd.exe","CONDA_DEFAULT_ENV":"base","CONDA_EXE":"C:\Users\xxmyuserxx\Apps\miniconda3\condabin\..\Scripts\conda.exe","CONDA_PREFIX":"C:\Users\xxmyuserxx\Apps\miniconda3","CONDA_PROMPT_MODIFIER":"(base) ","CONDA_PYTHON_EXE":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","CONDA_SHLVL":"1","DRIVERDATA":"C:\Windows\System32\Drivers\DriverData","ONEDRIVE":"C:\Users\xxmyuserxx\OneDrive","PROGRAMDATA":"C:\ProgramData","PROGRAMFILES":"C:\Program Files","PROGRAMFILES(X86)":"C:\Program Files (x86)","PROGRAMW6432":"C:\Program Files","PROMPT":"(base) $P$G","PSMODULEPATH":"C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules","PYTHONIOENCODING":"utf-8","PYTHONUNBUFFERED":"1","SYSTEMDRIVE":"C:","SYSTEMROOT":"C:\Windows","WINDIR":"C:\Windows"},"cwd":"C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos"} Info 2021-10-26 23:36:03: Python Daemon (pid: 20696): Execute rpc method exec_module in DS Daemon Info 2021-10-26 23:36:03: Python Daemon (pid: 20696): Execute rpc method exec_module from C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:03: Python Daemon (pid: 20696): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"2eebb535-3fec-4a42-8157-6d71c4bf77cb"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\Users\xxmyuserxx\AppData\Local\Temp\tmp-174568sNiHMqX4sBL.json'] Info 2021-10-26 23:36:03: Python Daemon (pid: 20696): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"2eebb535-3fec-4a42-8157-6d71c4bf77cb"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\Users\xxmyuserxx\AppData\Local\Temp\tmp-174568sNiHMqX4sBL.json'] Info 2021-10-26 23:36:03: Python Daemon (pid: 20696): Exec in DS Kernel Launcher Daemon (observable) ['C:\Users\xxmyuserxx\Apps\miniconda3\python.exe', '-m', 'ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"2eebb535-3fec-4a42-8157-6d71c4bf77cb"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\Users\xxmyuserxx\AppData\Local\Temp\tmp-174568sNiHMqX4sBL.json'] Info 2021-10-26 23:36:03: Python Daemon (pid: 20696): Exec in DS Kernel Launcher Daemon (observable) Info 2021-10-26 23:36:03: Python Daemon (pid: 20696): Kernel launched, with PID 22940 Warn 2021-10-26 23:36:03: Python Daemon (pid: 20696): Waiting for Kernel to die 22940 Info 2021-10-26 23:36:03: Launching kernel daemon, Class name = f, completed in 1447ms, has a truthy return value, Arg 1: <Uri:C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos\main.py>, Arg 2: "C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos", Arg 3: {"interpreterPath":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","name":"python395jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"2eebb535-3fec-4a42-8157-6d71c4bf77cb\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\Users\xxmyuserxx\AppData\Local\Temp\tmp-174568sNiHMqX4sBL.json"],"language":"python","path":"python","display_name":"Python 3.9.5 64-bit ('base': conda)","metadata":{"interpreter":{"sysPrefix":"C:\Users\xxmyuserxx\Apps\miniconda3","envType":"Conda","envName":"base","envPath":"C:\Users\xxmyuserxx\Apps\miniconda3","path":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","architecture":3,"sysVersion":"3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.5","major":3,"minor":9,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.5 64-bit ('base': conda)"}},"env":{}}, Arg 4: {"sysPrefix":"C:\Users\xxmyuserxx\Apps\miniconda3","envType":"Conda","envName":"base","envPath":"C:\Users\xxmyuserxx\Apps\miniconda3","path":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","architecture":3,"sysVersion":"3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.5","major":3,"minor":9,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.5 64-bit ('base': conda)"}, Return Value: Info 2021-10-26 23:36:03: Launching kernel in kernelProcess.ts, Class name = y, completed in 1447ms, has a truthy return value, Arg 1: "C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","_handle":{"pid":20696},"spawnargs":["C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","-m","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":20696,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}} Info 2021-10-26 23:36:05: KernelProcess output: Content-Length: 366 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '\"hmac-sha256\"' if you require traitlets >=5.\r\n", "pid": 20696}} Info 2021-10-26 23:36:05: Python Daemon (pid: 20696): write to stderr: C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.

Info 2021-10-26 23:36:05: KernelProcess output: Content-Length: 341 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '\"hmac-sha256\"' if you require traitlets >=5.\r\n"}}Content-Length: 117 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: warn(\r\n", "pid": 20696}}Content-Length: 92 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": " warn(\r\n"}}Content-Length: 378 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '2eebb535-3fec-4a42-8157-6d71c4bf77cb' instead of 'b\"2eebb535-3fec-4a42-8157-6d71c4bf77cb\"'.\r\n", "pid": 20696}}Content-Length: 353 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '2eebb535-3fec-4a42-8157-6d71c4bf77cb' instead of 'b\"2eebb535-3fec-4a42-8157-6d71c4bf77cb\"'.\r\n"}}Content-Length: 117 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: warn(\r\n", "pid": 20696}}Content-Length: 92 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": " warn(\r\n"}} Warn 2021-10-26 23:36:05: Kernel 20696 as possibly died, StdErr from Kernel Process C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.

Warn 2021-10-26 23:36:05: StdErr from Kernel Process C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.

Info 2021-10-26 23:36:05: Python Daemon (pid: 20696): write to stderr: warn(

Warn 2021-10-26 23:36:05: Kernel 20696 as possibly died, StdErr from Kernel Process warn(

Warn 2021-10-26 23:36:05: StdErr from Kernel Process warn(

Info 2021-10-26 23:36:05: Python Daemon (pid: 20696): write to stderr: C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '2eebb535-3fec-4a42-8157-6d71c4bf77cb' instead of 'b"2eebb535-3fec-4a42-8157-6d71c4bf77cb"'.

Warn 2021-10-26 23:36:05: Kernel 20696 as possibly died, StdErr from Kernel Process C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '2eebb535-3fec-4a42-8157-6d71c4bf77cb' instead of 'b"2eebb535-3fec-4a42-8157-6d71c4bf77cb"'.

Warn 2021-10-26 23:36:05: StdErr from Kernel Process C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '2eebb535-3fec-4a42-8157-6d71c4bf77cb' instead of 'b"2eebb535-3fec-4a42-8157-6d71c4bf77cb"'.

Info 2021-10-26 23:36:05: Python Daemon (pid: 20696): write to stderr: warn(

Warn 2021-10-26 23:36:05: Kernel 20696 as possibly died, StdErr from Kernel Process warn(

Warn 2021-10-26 23:36:05: StdErr from Kernel Process warn(

Info 2021-10-26 23:36:05: Raw session started and connected Started kernel Python 3.9.5 64-bit ('base': conda) Info 2021-10-26 23:36:05: Finished connecting ca871c46-0da1-41bf-bf79-bd2df4a073dc Info 2021-10-26 23:36:05: UpdateWorkingDirectoryAndPath in Kernel Info 2021-10-26 23:36:05: Registering commtarget jupyter.widget Info 2021-10-26 23:36:05: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:05: IPyWidgetScriptSource.initialize Info 2021-10-26 23:36:05: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:05: changeDirectoryIfPossible Info 2021-10-26 23:36:05: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:05: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:05: Waiting for idle on (kernel): 54d5aeb4-b2fa-48e7-b35a-15dbd00d0387 -> idle Info 2021-10-26 23:36:05: Finished waiting for idle on (kernel): 54d5aeb4-b2fa-48e7-b35a-15dbd00d0387 -> idle Info 2021-10-26 23:36:06: UpdateWorkingDirectoryAndPath in Jupyter Notebook Info 2021-10-26 23:36:06: changeDirectoryIfPossible Info 2021-10-26 23:36:06: Adding hash for 1 = 9cbaf54f6fef with 1 lines Info 2021-10-26 23:36:06: Finished execution for debff812-35b0-43a9-8a04-5a5daa37f371 Info 2021-10-26 23:36:13: UpdateWorkingDirectoryAndPath in Jupyter Notebook Info 2021-10-26 23:36:13: start debugging Info 2021-10-26 23:36:13: enable debugger attach Info 2021-10-26 23:36:13: Appending paths: ['C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-toolsai.jupyter-2021.9.5be4eadd41\pythonFiles', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-toolsai.jupyter-2021.9.5be4eadd41\pythonFiles\lib\python', 'C:\Users\xxmyuserxx\Apps\miniconda3\python39.zip', 'C:\Users\xxmyuserxx\Apps\miniconda3\DLLs', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib', 'C:\Users\xxmyuserxx\Apps\miniconda3', '', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\win32', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\win32\lib', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\Pythonwin', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\IPython\extensions', 'C:\Users\xxmyuserxx\.ipython', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-python.python-2021.10.3121343f79\pythonFiles\lib\python'] Info 2021-10-26 23:36:13: connected to notebook during debugging Info 2021-10-26 23:36:14: import startup: undefined Info 2021-10-26 23:36:14: Adding hash for 2 = 4b9c4e53e805 with 2 lines Info 2021-10-26 23:36:17: Finished execution for 948cc773-e807-4898-b4e8-e7dd4c6dd968 Info 2021-10-26 23:36:17: stop debugging Info 2021-10-26 23:36:20: UpdateWorkingDirectoryAndPath in Jupyter Notebook Info 2021-10-26 23:36:20: start debugging Info 2021-10-26 23:36:20: connected to notebook during debugging Info 2021-10-26 23:36:20: import startup: undefined Info 2021-10-26 23:36:20: Adding hash for 3 = 4b9c4e53e805 with 2 lines Info 2021-10-26 23:36:27: stop debugging Error 2021-10-26 23:36:27: DataScience Error Canceled: Canceled at Object.g [as canceled] (vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:8:1157) at o.handleErrorResponse (vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1024:33391) at vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1024:33280 Error 2021-10-26 23:36:29: DataScience Error Canceled: Canceled at Object.g [as canceled] (vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:8:1157) at o.handleErrorResponse (vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1024:33391) at vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1024:33280 Error 2021-10-26 23:36:31: DataScience Error Canceled: Canceled at Object.g [as canceled] (vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:8:1157) at o.handleErrorResponse (vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1024:33391) at vscode-file://vscode-app/C:/Users/xxmyuserxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1024:33280 Info 2021-10-26 23:36:34: Kernel got disposed as a result of notebook.onDisposed file:///c%3A/Users/Yuval/Projects/issues/vs-code-jupyter-debugging-wrong-pos/main.py Info 2021-10-26 23:36:34: Kernel got disposed, hence there is no longer a kernel associated with vscode-interactive:Interactive-1.interactive vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:34: Shutting down session vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:34: Shutdown session - current session Info 2021-10-26 23:36:34: shutdownSession 54d5aeb4-b2fa-48e7-b35a-15dbd00d0387, .jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher - start Info 2021-10-26 23:36:34: Session can be shutdown .jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher Info 2021-10-26 23:36:34: Dispose Kernel process Info 2021-10-26 23:36:34: kill daemon Info 2021-10-26 23:36:34: Notebook Closed vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:34: Closing interactive window: vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:34: Dispose kernel file:///c%3A/Users/Yuval/Projects/issues/vs-code-jupyter-debugging-wrong-pos/main.py Info 2021-10-26 23:36:34: Cancel pending cells Info 2021-10-26 23:36:34: Cancel pending cells Info 2021-10-26 23:36:34: KernelProcess output: Content-Length: 132 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel in DS Daemon", "pid": 20696}}Content-Length: 171 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel from C:\Users\xxmyuserxx\Apps\miniconda3\python.exe", "pid": 20696}}Content-Length: 129 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon", "pid": 20696}}Content-Length: 140 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon, pid 22940", "pid": 20696}} Info 2021-10-26 23:36:34: Python Daemon (pid: 20696): Execute rpc method kill_kernel in DS Daemon Info 2021-10-26 23:36:34: Process Execution: > ~\Apps\miniconda3\python.exe -c "import ipykernel"

~\Apps\miniconda3\python.exe -c "import ipykernel" Info 2021-10-26 23:36:34: KernelProcess output: Content-Length: 43 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "id": 2, "result": null} Info 2021-10-26 23:36:34: Python Daemon (pid: 20696): Execute rpc method kill_kernel from C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:34: Python Daemon (pid: 20696): Kill kernel in DS Kernel Launcher Daemon Info 2021-10-26 23:36:34: Python Daemon (pid: 20696): Kill kernel in DS Kernel Launcher Daemon, pid 22940 Info 2021-10-26 23:36:34: Dispose Kernel process Info 2021-10-26 23:36:34: shutdownSession 54d5aeb4-b2fa-48e7-b35a-15dbd00d0387, .jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher - shutdown complete Info 2021-10-26 23:36:34: Dispose Kernel process Info 2021-10-26 23:36:34: Shutdown session - get restart session Info 2021-10-26 23:36:34: Shutdown session -- complete Info 2021-10-26 23:36:34: KernelProcess Exit Exit - undefined Info 2021-10-26 23:36:35: Creating daemon process for C:\Users\xxmyuserxx\Apps\miniconda3\python.exe with env variables count 64 Info 2021-10-26 23:36:35: Process Execution: > ~\Apps\miniconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v

~\Apps\miniconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v Info 2021-10-26 23:36:35: Python Daemon (pid: 24020): Execute rpc method prewarm_kernel in DS Daemon Info 2021-10-26 23:36:35: Python Daemon (pid: 24020): Execute rpc method prewarm_kernel from C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:35: Python Daemon (pid: 24020): Pre-Warm DS Kernel in DS Kernel Launcher Daemon Info 2021-10-26 23:36:35: Python Daemon (pid: 24020): Exec in DS Kernel Launcher Daemon (observable) ['C:\Users\xxmyuserxx\Apps\miniconda3\python.exe', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-toolsai.jupyter-2021.9.5be4eadd41\pythonFiles\vscode_datascience_helpers\kernel_prewarm_starter.py'] Info 2021-10-26 23:36:35: Python Daemon (pid: 24020): Exec in DS Kernel Launcher Daemon (observable) Info 2021-10-26 23:36:35: Python Daemon (pid: 24020): Kernel launched, with PID 23448 Warn 2021-10-26 23:36:35: Python Daemon (pid: 24020): Waiting for Kernel to die 23448 Info 2021-10-26 23:36:35: Python Daemon (pid: 24020): Kernel launched, with PID as a daemon 23448 Info 2021-10-26 23:36:37: Starting interactive window with controller ID ms-toolsai.jupyter/.jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher (Interactive) Info 2021-10-26 23:36:37: Setting setActiveController for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:37: Intiailize notebook communications for editor vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:37: Resolving notebook UI Comms (resolve) for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:37: initialize CommonMessageCoordinator Info 2021-10-26 23:36:37: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:37: Process Execution: > ~\Apps\miniconda3\python.exe -m pip list ~\Apps\miniconda3\python.exe -m pip list Info 2021-10-26 23:36:37: Created and initailized CommonMessageCoordinator Info 2021-10-26 23:36:37: Attach Coordinator for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:37: Starting Notebook in kernel.ts id = .jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher Info 2021-10-26 23:36:37: Creating raw notebook for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:37: Getting preferred kernel for vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:37: Computing working directory vscode-interactive:Interactive-1.interactive Info 2021-10-26 23:36:37: Connecting to raw session for vscode-interactive:Interactive-1.interactive with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"interpreterPath":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","name":"python395jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.5 64-bit ('base': conda)","metadata":{"interpreter":{"sysPrefix":"C:\Users\xxmyuserxx\Apps\miniconda3","envType":"Conda","envName":"base","envPath":"C:\Users\xxmyuserxx\Apps\miniconda3","path":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","architecture":3,"sysVersion":"3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.5","major":3,"minor":9,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.5 64-bit ('base': conda)"}},"env":{}},"interpreter":{"sysPrefix":"C:\Users\xxmyuserxx\Apps\miniconda3","envType":"Conda","envName":"base","envPath":"C:\Users\xxmyuserxx\Apps\miniconda3","path":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","architecture":3,"sysVersion":"3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.5","major":3,"minor":9,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.5 64-bit ('base': conda)"},"id":".jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.C:\Users\xxmyuserxx\Apps\miniconda3\python.exe.-m#ipykernel_launcher"} Info 2021-10-26 23:36:37: Starting raw kernel Python 3.9.5 64-bit ('base': conda) Info 2021-10-26 23:36:37: installMissingDependencies C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:37: Process Execution: > ~\Apps\miniconda3\python.exe -c "import ipykernel" ~\Apps\miniconda3\python.exe -c "import ipykernel" Info 2021-10-26 23:36:38: Install Missing Dependencies, Class name = S, completed in 679ms, has a falsy return value, Return Value: undefined Info 2021-10-26 23:36:38: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000 Info 2021-10-26 23:36:38: Launching kernel daemon for Python 3.9.5 64-bit ('base': conda) # C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:38: Process Execution: > ~\Apps\miniconda3\python.exe -c "import ipykernel" ~\Apps\miniconda3\python.exe -c "import ipykernel" Info 2021-10-26 23:36:38: Using prewarmed kernel ... Info 2021-10-26 23:36:38: Python Daemon (pid: 24020): Execute rpc method start_prewarmed_kernel in DS Daemon Info 2021-10-26 23:36:38: Python Daemon (pid: 24020): Execute rpc method start_prewarmed_kernel from C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:38: Python Daemon (pid: 24020): Start pre-warmed Kernel in DS Kernel Launcher Daemon 23448 with args ['ipykernel_launcher', '--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"275b8425-25b3-4635-a743-c288b12fb89c"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\Users\xxmyuserxx\AppData\Local\Temp\tmp-17456ARoPGDa2BsEj.json'] Info 2021-10-26 23:36:38: Launching kernel daemon, Class name = f, completed in 31ms, has a truthy return value, Arg 1: <Uri:C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos\main.py>, Arg 2: "C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos", Arg 3: {"interpreterPath":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","name":"python395jvs485480e7122d2ab8557459f457c3908d7a1dfd83687be034162cc7f25b900690445a8214d","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"275b8425-25b3-4635-a743-c288b12fb89c\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\Users\xxmyuserxx\AppData\Local\Temp\tmp-17456ARoPGDa2BsEj.json"],"language":"python","path":"python","display_name":"Python 3.9.5 64-bit ('base': conda)","metadata":{"interpreter":{"sysPrefix":"C:\Users\xxmyuserxx\Apps\miniconda3","envType":"Conda","envName":"base","envPath":"C:\Users\xxmyuserxx\Apps\miniconda3","path":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","architecture":3,"sysVersion":"3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.5","major":3,"minor":9,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.5 64-bit ('base': conda)"}},"env":{}}, Arg 4: {"sysPrefix":"C:\Users\xxmyuserxx\Apps\miniconda3","envType":"Conda","envName":"base","envPath":"C:\Users\xxmyuserxx\Apps\miniconda3","path":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","architecture":3,"sysVersion":"3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.5","major":3,"minor":9,"patch":5,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.5 64-bit ('base': conda)"}, Return Value: Info 2021-10-26 23:36:38: Launching kernel in kernelProcess.ts, Class name = y, completed in 32ms, has a truthy return value, Arg 1: "C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","_handle":{"pid":24020},"spawnargs":["C:\Users\xxmyuserxx\Apps\miniconda3\python.exe","-m","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":24020,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":false,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{"close":[null,null]},"_eventsCount":4,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":true,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":3,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}} Info 2021-10-26 23:36:38: KernelProcess output: Content-Length: 366 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '\"hmac-sha256\"' if you require traitlets >=5.\r\n", "pid": 24020}}Content-Length: 341 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '\"hmac-sha256\"' if you require traitlets >=5.\r\n"}} Info 2021-10-26 23:36:38: Python Daemon (pid: 24020): write to stderr: C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.

Info 2021-10-26 23:36:38: KernelProcess output: Content-Length: 117 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: warn(\r\n", "pid": 24020}}Content-Length: 92 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": " warn(\r\n"}}Content-Length: 378 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '275b8425-25b3-4635-a743-c288b12fb89c' instead of 'b\"275b8425-25b3-4635-a743-c288b12fb89c\"'.\r\n", "pid": 24020}}Content-Length: 353 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": "C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '275b8425-25b3-4635-a743-c288b12fb89c' instead of 'b\"275b8425-25b3-4635-a743-c288b12fb89c\"'.\r\n"}}Content-Length: 117 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "write to stderr: warn(\r\n", "pid": 24020}}Content-Length: 92 Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "output", "params": {"source": "stderr", "out": " warn(\r\n"}} Warn 2021-10-26 23:36:38: Kernel 24020 as possibly died, StdErr from Kernel Process C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.

Warn 2021-10-26 23:36:38: StdErr from Kernel Process C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.

Info 2021-10-26 23:36:38: Python Daemon (pid: 24020): write to stderr: warn(

Warn 2021-10-26 23:36:38: Kernel 24020 as possibly died, StdErr from Kernel Process warn(

Warn 2021-10-26 23:36:38: StdErr from Kernel Process warn(

Info 2021-10-26 23:36:38: Python Daemon (pid: 24020): write to stderr: C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '275b8425-25b3-4635-a743-c288b12fb89c' instead of 'b"275b8425-25b3-4635-a743-c288b12fb89c"'.

Warn 2021-10-26 23:36:38: Kernel 24020 as possibly died, StdErr from Kernel Process C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '275b8425-25b3-4635-a743-c288b12fb89c' instead of 'b"275b8425-25b3-4635-a743-c288b12fb89c"'.

Warn 2021-10-26 23:36:38: StdErr from Kernel Process C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '275b8425-25b3-4635-a743-c288b12fb89c' instead of 'b"275b8425-25b3-4635-a743-c288b12fb89c"'.

Info 2021-10-26 23:36:38: Python Daemon (pid: 24020): write to stderr: warn(

Warn 2021-10-26 23:36:38: Kernel 24020 as possibly died, StdErr from Kernel Process warn(

Warn 2021-10-26 23:36:38: StdErr from Kernel Process warn(

Info 2021-10-26 23:36:38: Raw session started and connected Started kernel Python 3.9.5 64-bit ('base': conda) Info 2021-10-26 23:36:38: Finished connecting ca871c46-0da1-41bf-bf79-bd2df4a073dc Info 2021-10-26 23:36:38: UpdateWorkingDirectoryAndPath in Kernel Info 2021-10-26 23:36:38: IPyWidgetScriptSource.initialize Info 2021-10-26 23:36:38: Registering commtarget jupyter.widget Info 2021-10-26 23:36:38: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:38: changeDirectoryIfPossible Info 2021-10-26 23:36:38: Waiting for idle on (kernel): 7fa6cb13-75f9-4453-82c1-5a8190d98ec7 -> idle Info 2021-10-26 23:36:38: Finished waiting for idle on (kernel): 7fa6cb13-75f9-4453-82c1-5a8190d98ec7 -> idle Info 2021-10-26 23:36:38: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:38: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:38: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:38: UpdateWorkingDirectoryAndPath in Jupyter Notebook Info 2021-10-26 23:36:38: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:38: IPyWidgetMessageDispatcher.initialize Info 2021-10-26 23:36:38: changeDirectoryIfPossible Info 2021-10-26 23:36:38: start debugging Info 2021-10-26 23:36:38: enable debugger attach Info 2021-10-26 23:36:38: Creating daemon process for C:\Users\xxmyuserxx\Apps\miniconda3\python.exe with env variables count 64 Info 2021-10-26 23:36:38: Process Execution: > ~\Apps\miniconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v

~\Apps\miniconda3\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v Info 2021-10-26 23:36:38: Appending paths: ['C:\Users\xxmyuserxx\Projects\issues\vs-code-jupyter-debugging-wrong-pos', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-toolsai.jupyter-2021.9.5be4eadd41\pythonFiles\vscode_datascience_helpers', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-toolsai.jupyter-2021.9.5be4eadd41\pythonFiles', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-toolsai.jupyter-2021.9.5be4eadd41\pythonFiles\lib\python', 'C:\Users\xxmyuserxx\Apps\miniconda3\python39.zip', 'C:\Users\xxmyuserxx\Apps\miniconda3\DLLs', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib', 'C:\Users\xxmyuserxx\Apps\miniconda3', '', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\win32', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\win32\lib', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\Pythonwin', 'C:\Users\xxmyuserxx\Apps\miniconda3\lib\site-packages\IPython\extensions', 'C:\Users\xxmyuserxx\.ipython', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-python.python-2021.10.3121343f79\pythonFiles\lib\python'] Info 2021-10-26 23:36:39: Python Daemon (pid: 19268): Execute rpc method prewarm_kernel in DS Daemon Info 2021-10-26 23:36:39: Python Daemon (pid: 19268): Execute rpc method prewarm_kernel from C:\Users\xxmyuserxx\Apps\miniconda3\python.exe Info 2021-10-26 23:36:39: Python Daemon (pid: 19268): Pre-Warm DS Kernel in DS Kernel Launcher Daemon Info 2021-10-26 23:36:39: Python Daemon (pid: 19268): Exec in DS Kernel Launcher Daemon (observable) ['C:\Users\xxmyuserxx\Apps\miniconda3\python.exe', 'C:\Users\xxmyuserxx\.vscode\extensions\ms-toolsai.jupyter-2021.9.5be4eadd41\pythonFiles\vscode_datascience_helpers\kernel_prewarm_starter.py'] Info 2021-10-26 23:36:39: Python Daemon (pid: 19268): Exec in DS Kernel Launcher Daemon (observable) Info 2021-10-26 23:36:39: Python Daemon (pid: 19268): Kernel launched, with PID 20644 Warn 2021-10-26 23:36:39: Python Daemon (pid: 19268): Waiting for Kernel to die 20644 Info 2021-10-26 23:36:39: Python Daemon (pid: 19268): Kernel launched, with PID as a daemon 20644 Info 2021-10-26 23:36:39: connected to notebook during debugging Info 2021-10-26 23:36:39: import startup: undefined Info 2021-10-26 23:36:39: Adding hash for 1 = 4b9c4e53e805 with 2 lines Info 2021-10-26 23:36:42: Cancel all remaining cells true || 4 Info 2021-10-26 23:36:42: Cancel pending cells Info 2021-10-26 23:36:42: Finished execution for c2797f75-df34-4864-a208-392e154f0154 Info 2021-10-26 23:36:42: stop debugging Info 2021-10-26 23:36:43: Loading webview. View is notset Info 2021-10-26 23:36:43: Loading web view... Info 2021-10-26 23:36:43: Webview panel created. Info 2021-10-26 23:36:43: Web view react rendered Info 2021-10-26 23:36:44: Searching for token colors ... Info 2021-10-26 23:36:44: Attempting search for colors ... Info 2021-10-26 23:36:44: Loading colors from C:\Users\xxmyuserxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ... Info 2021-10-26 23:36:44: Attempting search for colors ... Info 2021-10-26 23:36:44: Loading base colors from C:\Users\xxmyuserxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\theme-defaults\themes\dark_plus.json ... Info 2021-10-26 23:36:44: Using colors to generate CSS ...


</p>
</details>

## Conda history

<details>

<summary>For completeness, I am attaching the output of <code>conda list --revisions</code>.</summary>

<p>

$ conda list --export --revisions 2021-07-15 10:23:22 (rev 0) +brotlipy-0.7.0 +ca-certificates-2021.7.5 +certifi-2021.5.30 +cffi-1.14.6 +chardet-4.0.0 +conda-4.10.3 +conda-package-handling-1.7.3 +console_shortcut-0.1.1 +cryptography-3.4.7 +idna-2.10 +menuinst-1.4.16 +openssl-1.1.1k +pip-21.1.3 +powershell_shortcut-0.0.1 +pycosat-0.6.3 +pycparser-2.20 +pyopenssl-20.0.1 +pysocks-1.7.1 +python-3.9.5 +pywin32-228 +requests-2.25.1 +ruamel_yaml-0.15.100 +setuptools-52.0.0 +six-1.16.0 +sqlite-3.36.0 +tqdm-4.61.2 +tzdata-2021a +urllib3-1.26.6 +vc-14.2 +vs2015_runtime-14.27.29016 +wheel-0.36.2 +win_inet_pton-1.1.0 +wincertstore-0.2 +yaml-0.2.5

2021-10-26 23:06:41 (rev 1) brotlipy {0.7.0 -> 0.7.0 (defaults/win-64)} ca-certificates {2021.7.5 -> 2021.10.8 (conda-forge/win-64)} certifi {2021.5.30 -> 2021.10.8 (conda-forge/win-64)} cffi {1.14.6 -> 1.14.6 (defaults/win-64)} chardet {4.0.0 -> 4.0.0 (defaults/win-64)} conda {4.10.3 -> 4.10.3 (conda-forge/win-64)} conda-package-handling {1.7.3 -> 1.7.3 (defaults/win-64)} console_shortcut {0.1.1 -> 0.1.1 (defaults/win-64)} cryptography {3.4.7 -> 3.4.7 (defaults/win-64)} idna {2.10 -> 2.10 (defaults/noarch)} menuinst {1.4.16 -> 1.4.16 (defaults/win-64)} openssl {1.1.1k -> 1.1.1l (conda-forge/win-64)} pip {21.1.3 -> 21.1.3 (defaults/win-64)} powershell_shortcut {0.0.1 -> 0.0.1 (defaults/win-64)} pycosat {0.6.3 -> 0.6.3 (defaults/win-64)} pycparser {2.20 -> 2.20 (defaults/noarch)} pyopenssl {20.0.1 -> 20.0.1 (defaults/noarch)} pysocks {1.7.1 -> 1.7.1 (defaults/win-64)} python {3.9.5 -> 3.9.5 (defaults/win-64)} pywin32 {228 -> 228 (defaults/win-64)} requests {2.25.1 -> 2.25.1 (defaults/noarch)} ruamel_yaml {0.15.100 -> 0.15.100 (defaults/win-64)} setuptools {52.0.0 -> 52.0.0 (defaults/win-64)} six {1.16.0 -> 1.16.0 (defaults/noarch)} sqlite {3.36.0 -> 3.36.0 (defaults/win-64)} tqdm {4.61.2 -> 4.61.2 (defaults/noarch)} tzdata {2021a -> 2021a (defaults/noarch)} urllib3 {1.26.6 -> 1.26.6 (defaults/noarch)} vc {14.2 -> 14.2 (defaults/win-64)} vs2015_runtime {14.27.29016 -> 14.27.29016 (defaults/win-64)} wheel {0.36.2 -> 0.36.2 (defaults/noarch)} win_inet_pton {1.1.0 -> 1.1.0 (defaults/win-64)} wincertstore {0.2 -> 0.2 (defaults/win-64)} yaml {0.2.5 -> 0.2.5 (defaults/win-64)} +backcall-0.2.0 (conda-forge/noarch) +backports-1.0 (conda-forge/noarch) +backports.functools_lru_cache-1.6.4 (conda-forge/noarch) +colorama-0.4.4 (conda-forge/noarch) +debugpy-1.4.1 (conda-forge/win-64) +decorator-5.1.0 (conda-forge/noarch) +entrypoints-0.3 (conda-forge/noarch) +ipykernel-6.4.2 (conda-forge/win-64) +ipython-7.28.0 (conda-forge/win-64) +ipython_genutils-0.2.0 (conda-forge/noarch) +jedi-0.18.0 (conda-forge/win-64) +jupyter_client-7.0.6 (conda-forge/noarch) +jupyter_core-4.8.1 (conda-forge/win-64) +libsodium-1.0.18 (conda-forge/win-64) +matplotlib-inline-0.1.3 (conda-forge/noarch) +nest-asyncio-1.5.1 (conda-forge/noarch) +parso-0.8.2 (conda-forge/noarch) +pickleshare-0.7.5 (conda-forge/noarch) +prompt-toolkit-3.0.21 (conda-forge/noarch) +pygments-2.10.0 (conda-forge/noarch) +python-dateutil-2.8.2 (conda-forge/noarch) +python_abi-3.9 (conda-forge/win-64) +pyzmq-22.3.0 (conda-forge/win-64) +tornado-6.1 (conda-forge/win-64) +traitlets-5.1.1 (conda-forge/noarch) +wcwidth-0.2.5 (conda-forge/noarch) +zeromq-4.3.4 (conda-forge/win-64)



</p>

</details>
rchiodo commented 3 years ago

Thanks for the bug. This should already be fixed in our insiders bits. Please try the insiders build

rchiodo commented 3 years ago

This commit here is what should have fixed this issue: https://github.com/microsoft/vscode-jupyter/commit/08f00b22ff0ef2dd785a2d9f7ff1e6e1706f0909