Open goldrik opened 2 weeks ago
This happened again just now, this time while running a code cell from my file. The first section is before I ran the cell, when I had no issues. The second section has the logs after running the cell, which is when it hung for a few minutes.
12:01:03.557 [info] Generated code for 34 =
In the middle, I hovered over some functions in my file, which is what caused those four logs at 12:04
12:02:21.631 [info] Generated code for 35 =
Do you have the variable explorer open? Might be related to #15838
I dont have the variable explorer open in this case.
When a cell is pending (like I'd shown above) and I open the Jupyter Variable Explorer, no variables are shown, just the message "Loading variables". Then, after a few minutes, once the cell finally runs, the Variable Explorer populates with all the variables.
Environment data
Info
I am trying to run cells from a regular python (.py, not .ipynb) file. Sometimes, I run code in the cells directly.
Jupyter › Interactive Window: Creation Mode
is set to MultipleExpected behaviour
Code should run immediately.
Actual behaviour
SOMETIMES (this behavior is very inconsistent), the cell gets stuck on "Pending" for some period of time before executing. In the logs below, the cell was Pending for 5+ minutes before it finally executed.
Steps to reproduce:
I had run all the cells in my file at once. Then I ran the following cell (%%timeit) in the Interactive Window. Half a minute later, while the cell was still pending, I ran another cell. Five minutes later, I finally got output.
Now can I run cells normally, but after a bit the problem occurs again, randomly.
It doesnt need to be this way, sometimes the pending behavior occurs when I send a code cell (from my file) to run. It can be literally any code, as simple as printing a variable. The pending time varies a lot.
Logs
11:34:26.108 [debug] Code execution cancelled by extension ms-toolsai.jupyter 11:34:26.108 [debug] Code execution cancelled by extension ms-toolsai.jupyter 11:34:26.108 [debug] Jupyter completion time: 1109 11:34:29.745 [debug] Code execution cancelled by extension ms-toolsai.jupyter 11:34:29.745 [debug] Code execution cancelled by extension ms-toolsai.jupyter 11:34:29.745 [debug] Jupyter completion time: 124 11:34:33.843 [debug] Handle Execution of Cells 31 for Interactive-1.interactive 11:34:33.843 [trace] Cell Index:31 sent to kernel 11:34:53.548 [debug] Code execution cancelled by extension ms-toolsai.jupyter 11:34:53.548 [debug] Code execution cancelled by extension ms-toolsai.jupyter 11:34:53.548 [debug] Jupyter completion time: 264 11:34:53.554 [debug] Handle Execution of Cells 32 for Interactive-1.interactive 11:40:20.889 [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) 11:40:20.927 [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) 11:40:20.967 [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) 11:40:21.003 [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) 11:40:21.040 [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) 11:40:21.078 [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) 11:40:21.115 [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) 11:40:21.152 [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) 11:40:21.168 [trace] Start cell 31 execution @ 1720626021168 (clear output) 11:40:21.168 [debug] Kernel acknowledged execution of cell 31 @ 1720626021168 11:40:35.891 [trace] Cell 31 completed in 14.723s (start: 1720626021168, end: 1720626035891) 11:40:35.891 [trace] Cell 31 executed successfully 11:40:35.892 [trace] Cell Index:32 sent to kernel 11:40:35.904 [trace] Executing silently Code (idle) = def _VSCODE_getVariable(what_to_get, is_debugging, args):\n# Query Jupyter server for the info 11:40:35.908 [trace] Start cell 32 execution @ 1720626035908 (clear output) 11:40:35.908 [debug] Kernel acknowledged execution of cell 32 @ 1720626035908 11:40:35.911 [trace] Cell 32 completed in 0.003s (start: 1720626035908, end: 1720626035911) 11:40:35.911 [trace] Cell 32 executed successfully 11:40:35.936 [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) 11:44:26.948 [trace] Executing silently Code (idle) = def _VSCODE_getVariable(what_to_get, is_debugging, args):\n# Query Jupyter server for the info 11:44:26.988 [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)