Description
Applies To
- Notebooks (.ipynb files)
- Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
Every so often—often within 10 minutes—the interactive window seems to "disconnect" from the running Jupyter kernel. Any additional attempts to execute cells just queue up and do nothing (see screenshot). Hitting the restart button brings up the UI elements associated with restarting the kernel but that process continues indefinitely and never completes.
I'm pretty confident the issue is not with Jupyter since I can connect to initial kernel from the Jupyter Lab web interface and everything works normally. The kernel remains available from Jupyter Lab even after hitting restart in VSCode.
I did not used to have this issue with earlier versions of VSCode and the extension (though I don't know ATM exactly which version the problem first appears).
The disconnection occurs right around the time of the repeated "CodeLensFactory" lines at the end of the log. Nothing other actions show up in the log once in this "disconnected" state except for the kernel restart request.
(The VSCode version pasted below is 1.95.3, but I get the same behavior with 1.96.0 and 1.96.2. I was also using 2024.11.0 of the extension then and still had the problem.)
VS Code Version
Version: 1.95.3 Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813 Date: 2024-11-13T14:50:04.152Z Electron: 32.2.1 ElectronBuildId: 10427718 Chromium: 128.0.6613.186 Node.js: 20.18.0 V8: 12.8.374.38-electron.0 OS: Linux x64 6.6.64
Jupyter Extension Version
2024.10.0
Jupyter logs
11:51:13.179 [info] Starting Kernel (Python 3 (ipykernel)) for '/Interactive-1.interactive' (disableUI=false)
11:51:14.006 [warn] Password for http://localhost:8080/ was invalid.
11:51:14.527 [info] http://localhost:8080/: Kernel started: 0bb5235a-b5db-4db3-ad2e-d832fb33c7a0
11:51:14.998 [info] Started session for kernel startUsingRemoteKernelSpec:cff860c0f77ba501557c510bf961253f9c64cbff4fe03051291853eb1c87167a..python3./python./.-m#ipykernel_launcher
11:51:15.698 [info] Kernel successfully started
11:51:16.028 [warn] Disposing old controller connectToLiveRemoteKernel:'69e69796-291f-4f3e-ae07-8a403689f54b' for view = 'jupyter-notebook'
11:51:16.029 [warn] Disposing old controller connectToLiveRemoteKernel:'69e69796-291f-4f3e-ae07-8a403689f54b (Interactive)' for view = 'interactive'
11:51:16.133 [warn] Password for http://localhost:8080/ was invalid.
11:51:16.237 [error] Error fetching kernels from http://localhost:8080/ (localhost): i [Error]: Forbidden
at Function.create (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:650)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.Of [as listRunning] (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:43016)
at n.getRunningKernels (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:181:18447)
at async Promise.all (index 0)
at VD.listKernelsFromConnection (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:282:19672)
at /home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:282:18405 {
response: p [Response] {
size: 0,
timeout: 0,
[Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
[Symbol(Response internals)]: {
url: 'http://localhost:8080/api/kernels?1736538676133',
status: 403,
statusText: 'Forbidden',
headers: [p [Headers]],
counter: 0
}
},
traceback: ''
}
11:51:16.259 [error] Jupyter Lab Helper:getKernelSpecs failure: Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
at i.dispose (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:35855)
at Kr.dispose (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:75419)
at /home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:181:17985
at processTicksAndRejections (node:internal/process/task_queues:95:5)
11:51:16.644 [warn] Password for http://localhost:8080/ was invalid.
11:51:16.765 [error] Error fetching kernels from http://localhost:8080/ (localhost): i [Error]: Forbidden
at Function.create (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:650)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.Of [as listRunning] (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:43016)
at n.getRunningKernels (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:181:18447)
at async Promise.all (index 0)
at VD.listKernelsFromConnection (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:282:19672)
at /home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:282:18405 {
response: p [Response] {
size: 0,
timeout: 0,
[Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
[Symbol(Response internals)]: {
url: 'http://localhost:8080/api/kernels?1736538676645',
status: 403,
statusText: 'Forbidden',
headers: [p [Headers]],
counter: 0
}
},
traceback: ''
}
11:51:16.766 [error] Jupyter Lab Helper:getKernelSpecs failure: Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
at i.dispose (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:35855)
at Kr.dispose (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/node_modules/@jupyterlab/services.js:11:75419)
at /home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:181:17985
at processTicksAndRejections (node:internal/process/task_queues:95:5)
11:51:16.766 [warn] Could not fetch kernels from the remote server, falling back to cache: Error: Forbidden
11:53:02.137 [debug] CodeLensFactory: Generating new code lenses for version 1 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:53:17.984 [info] Generated code for 1 = <ipython-input-1-7d2e8dff9557> with 542 lines
11:53:17.989 [trace] Cell Index:34 sent to kernel
11:53:18.130 [trace] Start cell 34 execution @ 1736538798129 (clear output)
11:53:18.130 [debug] Kernel acknowledged execution of cell 34 @ 1736538798129
11:53:20.060 [trace] Cell 34 completed in 1.931s (start: 1736538798129, end: 1736538800060)
11:53:20.060 [trace] Cell 34 executed successfully
11:53:25.778 [debug] CodeWatcher::runCell, Class name = qt (started execution)
11:53:25.781 [info] Generated code for 2 = <ipython-input-2-6bc420862092> with 13 lines
11:53:25.783 [trace] Cell Index:35 sent to kernel
11:53:25.935 [trace] Start cell 35 execution @ 1736538805935 (clear output)
11:53:25.935 [debug] Kernel acknowledged execution of cell 35 @ 1736538805935
11:54:23.313 [warn] Cell completed with errors iu [Error]: stack requires ndarray or scalar arguments, got <class 'NoneType'> at position 3.
at n.execute (/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/dist/extension.node.js:297:4958)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
ename: 'TypeError',
evalue: "stack requires ndarray or scalar arguments, got <class 'NoneType'> at position 3.",
traceback: [
'\x1B[0;31m---------------------------------------------------------------------------\x1B[0m',
'\x1B[0;31mTypeError\x1B[0m Traceback (most recent call last)',
'Cell \x1B[0;32mIn[4], line 12\x1B[0m\n' +
'\x1B[1;32m 10\x1B[0m mesh \x1B[38;5;241m=\x1B[39m summon_mesh()\n' +
'\x1B[1;32m 11\x1B[0m data_sharding \x1B[38;5;241m=\x1B[39m jax\x1B[38;5;241m.\x1B[39msharding\x1B[38;5;241m.\x1B[39mNamedSharding(mesh, PSpec(mesh\x1B[38;5;241m.\x1B[39maxis_names, \x1B[38;5;28;01mNone\x1B[39;00m))\n' +
'\x1B[0;32m---> 12\x1B[0m \x1B[43mrun_benchmarks\x1B[49m\x1B[43m(\x1B[49m\x1B[43mptg\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43mtkn\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43mdata_sharding\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43mverbosity\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;124;43mna\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m)\x1B[49m\n',
'Cell \x1B[0;32mIn[3], line 525\x1B[0m, in \x1B[0;36mrun_benchmarks\x1B[0;34m(gemma, tkn, data_sharding, verbosity)\x1B[0m\n' +
'\x1B[1;32m 523\x1B[0m benchmark \x1B[38;5;241m=\x1B[39m ft\x1B[38;5;241m.\x1B[39mpartial(benchmark, verbosity\x1B[38;5;241m=\x1B[39mverbosity) \x1B[38;5;66;03m# noqa: PLW2901\x1B[39;00m\n' +
'\x1B[1;32m 524\x1B[0m \x1B[38;5;28mprint\x1B[39m(name)\n' +
'\x1B[0;32m--> 525\x1B[0m res \x1B[38;5;241m=\x1B[39m \x1B[43mbenchmark\x1B[49m\x1B[43m(\x1B[49m\x1B[43minference_helper_with_logits\x1B[49m\x1B[43m(\x1B[49m\x1B[43mgemma\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43mtkn\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43mdata_sharding\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[43mdata_sharding\x1B[49m\x1B[43m)\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43mtkn\x1B[49m\x1B[43m)\x1B[49m\n' +
'\x1B[1;32m 526\x1B[0m \x1B[38;5;28mprint\x1B[39m(res)\n',
'Cell \x1B[0;32mIn[3], line 194\x1B[0m, in \x1B[0;36mmmlu\x1B[0;34m(gemma, tkn, num_problems, verbosity)\x1B[0m\n' +
'\x1B[1;32m 187\x1B[0m \x1B[38;5;28;01mdef\x1B[39;00m \x1B[38;5;21mmmlu\x1B[39m(\n' +
'\x1B[1;32m 188\x1B[0m gemma: ModelFuncWLogits,\n' +
'\x1B[1;32m 189\x1B[0m tkn: spm\x1B[38;5;241m.\x1B[39mSentencePieceProcessor[Fin[VocabSize]],\n' +
'\x1B[0;32m (...)\x1B[0m\n' +
'\x1B[1;32m 192\x1B[0m verbosity: Verbosity \x1B[38;5;241m=\x1B[39m \x1B[38;5;124m"\x1B[39m\x1B[38;5;124mlight\x1B[39m\x1B[38;5;124m"\x1B[39m,\n' +
'\x1B[1;32m 193\x1B[0m ):\n' +
'\x1B[0;32m--> 194\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m \x1B[43mbenchmark\x1B[49m\x1B[43m(\x1B[49m\n' +
'\x1B[1;32m 195\x1B[0m \x1B[43m \x1B[49m\x1B[43mgemma\x1B[49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 196\x1B[0m \x1B[43m \x1B[49m\x1B[43mtkn\x1B[49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 197\x1B[0m \x1B[43m \x1B[49m\x1B[43mdatasets\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mload_dataset\x1B[49m\x1B[43m(\x1B[49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;124;43mcais/mmlu\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;124;43mall\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m)\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;124;43mvalidation\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m]\x1B[49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 198\x1B[0m \x1B[43m \x1B[49m\x1B[43mpreamble\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;124;43mAnswer the following question in the specified subject area.\x1B[39;49m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m,\x1B[49m\n' +
`\x1B[1;32m 199\x1B[0m \x1B[43m \x1B[49m\x1B[43mbody\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[38;5;28;43;01mlambda\x1B[39;49;00m\x1B[43m \x1B[49m\x1B[43mproblem\x1B[49m\x1B[43m:\x1B[49m\x1B[43m \x1B[49m\x1B[38;5;124;43mf\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;124;43mSubject: \x1B[39;49m\x1B[38;5;132;43;01m{\x1B[39;49;00m\x1B[43mproblem\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[38;5;124;43msubject\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[43m]\x1B[49m\x1B[38;5;132;43;01m}\x1B[39;49;00m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43mQuestion: \x1B[39;49m\x1B[38;5;132;43;01m{\x1B[39;49;00m\x1B[43mproblem\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[38;5;124;43mquestion\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[43m]\x1B[49m\x1B[38;5;132;43;01m}\x1B[39;49;00m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43mChoices:\x1B[39;49m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43ma. \x1B[39;49m\x1B[38;5;132;43;01m{\x1B[39;49;00m\x1B[43mproblem\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[38;5;124;43mchoices\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[43m]\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;241;43m0\x1B[39;49m\x1B[43m]\x1B[49m\x1B[38;5;132;43;01m}\x1B[39;49;00m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43mb. \x1B[39;49m\x1B[38;5;132;43;01m{\x1B[39;49;00m\x1B[43mproblem\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[38;5;124;43mchoices\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[43m]\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;241;43m1\x1B[39;49m\x1B[43m]\x1B[49m\x1B[38;5;132;43;01m}\x1B[39;49;00m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43mc. \x1B[39;49m\x1B[38;5;132;43;01m{\x1B[39;49;00m\x1B[43mproblem\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[38;5;124;43mchoices\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[43m]\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;241;43m2\x1B[39;49m\x1B[43m]\x1B[49m\x1B[38;5;132;43;01m}\x1B[39;49;00m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43md. \x1B[39;49m\x1B[38;5;132;43;01m{\x1B[39;49;00m\x1B[43mproblem\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[38;5;124;43mchoices\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[43m]\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;241;43m3\x1B[39;49m\x1B[43m]\x1B[49m\x1B[38;5;132;43;01m}\x1B[39;49;00m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[38;5;66;43;03m# noqa: E501\x1B[39;49;00m\n` +
'\x1B[1;32m 200\x1B[0m \x1B[43m \x1B[49m\x1B[43mpostamble\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43mAnswer ONLY with the letter labeling the correct choice. Answer:\x1B[39;49m\x1B[38;5;130;43;01m\\n\x1B[39;49;00m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 201\x1B[0m \x1B[43m \x1B[49m\x1B[43mparse_response\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[43mft\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mpartial\x1B[49m\x1B[43m(\x1B[49m\x1B[43mparse_mc_response_logits\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43mtkn\x1B[49m\x1B[43m)\x1B[49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 202\x1B[0m \x1B[43m \x1B[49m\x1B[43mextract_answer\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[38;5;28;43;01mlambda\x1B[39;49;00m\x1B[43m \x1B[49m\x1B[43mproblem\x1B[49m\x1B[43m:\x1B[49m\x1B[43m \x1B[49m\x1B[43mproblem\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;124;43manswer\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m]\x1B[49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 203\x1B[0m \x1B[43m \x1B[49m\x1B[43mnum_problems\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[43mnum_problems\x1B[49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 204\x1B[0m \x1B[43m \x1B[49m\x1B[43mverbosity\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[43mverbosity\x1B[49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 205\x1B[0m \x1B[43m \x1B[49m\x1B[43mtotal_len\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[38;5;241;43m256\x1B[39;49m\x1B[43m,\x1B[49m\n' +
'\x1B[1;32m 206\x1B[0m \x1B[43m \x1B[49m\x1B[43m)\x1B[49m\n',
'Cell \x1B[0;32mIn[3], line 99\x1B[0m, in \x1B[0;36mbenchmark\x1B[0;34m(model, tkn, dataset, preamble, body, postamble, parse_response, extract_answer, num_problems, verbosity, total_len)\x1B[0m\n' +
'\x1B[1;32m 95\x1B[0m choices_: \x1B[38;5;28mlist\x1B[39m[ndarray[Any, Any]] \x1B[38;5;241m=\x1B[39m cast(Any, choices)\n' +
'\x1B[1;32m 96\x1B[0m answers_: \x1B[38;5;28mlist\x1B[39m[Fin[Any]] \x1B[38;5;241m=\x1B[39m cast(Any, answers)\n' +
'\x1B[1;32m 97\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m (\n' +
'\x1B[1;32m 98\x1B[0m discrete_analysis(choices_, answers_), \x1B[38;5;66;03m# pyright: ignore[reportArgumentType]\x1B[39;00m\n' +
'\x1B[0;32m---> 99\x1B[0m cross_ent_analysis(\x1B[43mjnp\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mstack\x1B[49m\x1B[43m(\x1B[49m\x1B[43mchoices_\x1B[49m\x1B[43m)\x1B[49m, jnp\x1B[38;5;241m.\x1B[39marray(answers_)),\n' +
'\x1B[1;32m 100\x1B[0m \x1B[38;5;28mlen\x1B[39m(fchoices),\n' +
'\x1B[1;32m 101\x1B[0m \x1B[38;5;28mlen\x1B[39m(choices),\n' +
'\x1B[1;32m 102\x1B[0m )\n' +
'\x1B[1;32m 104\x1B[0m \x1B[38;5;28;01melse\x1B[39;00m:\n' +
'\x1B[1;32m 105\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m (discrete_analysis(fchoices, fanswers), \x1B[38;5;28mlen\x1B[39m(fchoices), \x1B[38;5;28mlen\x1B[39m(choices))\n',
'File \x1B[0;32m~/ml-scratch/.venv/lib/python3.11/site-packages/jax/_src/numpy/lax_numpy.py:3075\x1B[0m, in \x1B[0;36mstack\x1B[0;34m(arrays, axis, out, dtype)\x1B[0m\n' +
'\x1B[1;32m 3073\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m concatenate(expand_dims(arrays, axis \x1B[38;5;241m+\x1B[39m \x1B[38;5;241m1\x1B[39m), axis\x1B[38;5;241m=\x1B[39maxis, dtype\x1B[38;5;241m=\x1B[39mdtype)\n' +
'\x1B[1;32m 3074\x1B[0m \x1B[38;5;28;01melse\x1B[39;00m:\n' +
'\x1B[0;32m-> 3075\x1B[0m \x1B[43mutil\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mcheck_arraylike\x1B[49m\x1B[43m(\x1B[49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[38;5;124;43mstack\x1B[39;49m\x1B[38;5;124;43m"\x1B[39;49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[38;5;241;43m*\x1B[39;49m\x1B[43marrays\x1B[49m\x1B[43m)\x1B[49m\n' +
'\x1B[1;32m 3076\x1B[0m shape0 \x1B[38;5;241m=\x1B[39m shape(arrays[\x1B[38;5;241m0\x1B[39m])\n' +
'\x1B[1;32m 3077\x1B[0m axis \x1B[38;5;241m=\x1B[39m _canonicalize_axis(axis, \x1B[38;5;28mlen\x1B[39m(shape0) \x1B[38;5;241m+\x1B[39m \x1B[38;5;241m1\x1B[39m)\n',
'File \x1B[0;32m~/ml-scratch/.venv/lib/python3.11/site-packages/jax/_src/numpy/util.py:334\x1B[0m, in \x1B[0;36mcheck_arraylike\x1B[0;34m(fun_name, emit_warning, stacklevel, *args)\x1B[0m\n' +
'\x1B[1;32m 331\x1B[0m warnings\x1B[38;5;241m.\x1B[39mwarn(msg \x1B[38;5;241m+\x1B[39m \x1B[38;5;124m"\x1B[39m\x1B[38;5;124m In a future JAX release this will be an error.\x1B[39m\x1B[38;5;124m"\x1B[39m,\n' +
'\x1B[1;32m 332\x1B[0m category\x1B[38;5;241m=\x1B[39m\x1B[38;5;167;01mDeprecationWarning\x1B[39;00m, stacklevel\x1B[38;5;241m=\x1B[39mstacklevel)\n' +
'\x1B[1;32m 333\x1B[0m \x1B[38;5;28;01melse\x1B[39;00m:\n' +
'\x1B[0;32m--> 334\x1B[0m \x1B[38;5;28;01mraise\x1B[39;00m \x1B[38;5;167;01mTypeError\x1B[39;00m(msg\x1B[38;5;241m.\x1B[39mformat(fun_name, \x1B[38;5;28mtype\x1B[39m(arg), pos))\n',
"\x1B[0;31mTypeError\x1B[0m: stack requires ndarray or scalar arguments, got <class 'NoneType'> at position 3."
]
}
11:54:23.314 [trace] Cell 35 completed in 57.378s (start: 1736538805935, end: 1736538863313)
11:54:23.314 [trace] Cell 35 executed with an error
11:54:23.315 [debug] CodeWatcher::runCell, Class name = qt, completed in 57537ms, has a falsy return value
11:54:36.971 [debug] CodeLensFactory: Generating new code lenses for version 2 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:54:38.101 [debug] CodeLensFactory: Generating new code lenses for version 3 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:54:53.720 [info] Generated code for 3 = <ipython-input-3-6902ad9e34b7> with 542 lines
11:54:53.725 [trace] Cell Index:36 sent to kernel
11:54:53.853 [trace] Start cell 36 execution @ 1736538893853 (clear output)
11:54:53.853 [debug] Kernel acknowledged execution of cell 36 @ 1736538893853
11:54:54.114 [trace] Cell 36 completed in 0.261s (start: 1736538893853, end: 1736538894114)
11:54:54.114 [trace] Cell 36 executed successfully
11:54:57.165 [debug] CodeWatcher::runCell, Class name = qt (started execution)
11:54:57.169 [info] Generated code for 4 = <ipython-input-4-6bc420862092> with 13 lines
11:54:57.175 [trace] Cell Index:37 sent to kernel
11:54:57.365 [trace] Start cell 37 execution @ 1736538897365 (clear output)
11:54:57.366 [debug] Kernel acknowledged execution of cell 37 @ 1736538897365
11:55:32.536 [trace] Cell 37 completed in 35.171s (start: 1736538897365, end: 1736538932536)
11:55:32.536 [trace] Cell 37 executed successfully
11:55:32.537 [debug] CodeWatcher::runCell, Class name = qt, completed in 35372ms, has a falsy return value
11:56:08.892 [debug] CodeLensFactory: Generating new code lenses for version 7 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:09.224 [debug] CodeLensFactory: Generating new code lenses for version 8 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:09.720 [debug] CodeLensFactory: Generating new code lenses for version 12 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:10.452 [debug] CodeLensFactory: Generating new code lenses for version 17 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:10.772 [debug] CodeLensFactory: Generating new code lenses for version 18 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:12.458 [debug] CodeLensFactory: Generating new code lenses for version 19 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:29.525 [debug] CodeLensFactory: Generating new code lenses for version 20 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:32.268 [debug] CodeLensFactory: Generating new code lenses for version 31 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:34.339 [debug] CodeLensFactory: Generating new code lenses for version 33 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:56:36.503 [debug] CodeLensFactory: Generating new code lenses for version 34 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:41.292 [debug] CodeLensFactory: Generating new code lenses for version 36 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:41.682 [debug] CodeLensFactory: Generating new code lenses for version 38 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:42.015 [debug] CodeLensFactory: Generating new code lenses for version 39 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:43.562 [debug] CodeLensFactory: Generating new code lenses for version 50 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:44.522 [debug] CodeLensFactory: Generating new code lenses for version 56 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:44.920 [debug] CodeLensFactory: Generating new code lenses for version 58 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:45.910 [debug] CodeLensFactory: Generating new code lenses for version 62 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:47.672 [debug] CodeLensFactory: Generating new code lenses for version 69 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:56.473 [debug] CodeLensFactory: Generating new code lenses for version 74 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:57:56.806 [debug] CodeLensFactory: Generating new code lenses for version 75 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:58:02.328 [debug] CodeLensFactory: Generating new code lenses for version 76 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:58:08.931 [debug] CodeLensFactory: Generating new code lenses for version 77 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:58:15.662 [debug] CodeLensFactory: Generating new code lenses for version 84 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:58:54.446 [debug] CodeLensFactory: Generating new code lenses for version 85 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:58:55.017 [debug] CodeLensFactory: Generating new code lenses for version 90 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:58:55.605 [debug] CodeLensFactory: Generating new code lenses for version 91 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:58:58.374 [debug] CodeLensFactory: Generating new code lenses for version 92 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:59:28.424 [debug] CodeLensFactory: Generating new code lenses for version 93 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
11:59:29.046 [debug] CodeLensFactory: Generating new code lenses for version 94 of document file:///home/~/code/.../lc/eval/benchmark.py for commands jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell, jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover
12:05:56.755 [debug] Restart kernel command handler for /Interactive-1.interactive
12:05:56.756 [debug] restart the kernel, options.disableUI=false for /Interactive-1.interactive
12:05:56.756 [info] Restart requested /Interactive-1.interactive
12:05:56.757 [debug] Cancel pending cells
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote