WebSocket is not defined #16477
Unanswered
Arkhemis
asked this question in
Questions and Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently facing an issue with Jupyter in VSC. When I try to run a cell, I encounter the following error:
category: 'unknown',
isJupyterError: true,
originalException: [ReferenceError: WebSocket is not defined
at c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\node_modules@jupyterlab\services\index.js:11:375
at c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\node_modules@jupyterlab\services\index.js:1:35
at c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\node_modules@jupyterlab\services\index.js:11:2662
at c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\node_modules@jupyterlab\services\index.js:1:35
at c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\node_modules@jupyterlab\services\index.js:17:18524
at c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\node_modules@jupyterlab\services\index.js:1:35
at Object. (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\node_modules@jupyterlab\services\index.js:17:18706)
at Module._compile (node:internal/modules/cjs/loader:1484:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
at Module.load (node:internal/modules/cjs/loader:1295:32)
at Module.load (node:internal/modules/cjs/loader:1111:12)
at c.load (node:electron/js2c/node_init:2:16955)
at e.load (file:///c:/Users/
/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:190:10924)/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:182:22404)at t._load (file:///c:/Users/
at i.load (file:///c:/Users/~/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:21729)
at Module.require (node:internal/modules/cjs/loader:1318:19)
at require (node:internal/modules/helpers:179:18)
at Vpe (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\extension.node.js:301:18787)
at Z.start (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\extension.node.js:301:11486)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eT.startKernel (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\extension.node.js:301:21741)
at async Wy.create (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\extension.node.js:301:24048)
at async y.createJupyterSession (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\extension.node.js:282:36917)
at async y.startJupyterSession (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\extension.node.js:282:34694)
at async y.start (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\extension.node.js:282:30778)
at async n.wrapKernelMethodImpl (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2025.2.0-win32-x64\dist\extension.node.js:301:84148)]
}
I reinstalled VSC, reinstalled Python, deleted all requirements and reinstalled them and the issue persists. The strange thing is that jupyter is working outside VSC!
Beta Was this translation helpful? Give feedback.
All reactions