Failed to connect to Jupyter server on localhost 8888
See original GitHub issueEnvironment data
-
VS Code version:
-
Extension version (available under the Extensions sidebar): v2020.11.358366026
-
OS and version: Win10 19041
-
Python version (& distribution if applicable, e.g. Anaconda): 3.9.0
-
Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
-
Relevant/affected Python packages and their versions: N/A
-
Relevant/affected Python-related VS Code extensions and their versions: N/A
-
Value of the
python.languageServer
setting: What ?
Expected behaviour
Start and run console
Actual behaviour
Unable to connect
Steps to reproduce:
- Try to run a cell containing
print('Hello)
- Hit ‘Shift+Enter’
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
> ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\pythonFiles\pyvsc-run-isolated.py jupyter kernelspec --version
> ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\pythonFiles\pyvsc-run-isolated.py jupyter kernelspec --version
Error 2020-11-15 05:16:00: SessionManager cannot enumerate kernelspecs. Returning default.
Connecting to Jupyter server at http://localhost:8888/
Error 2020-11-15 05:16:02: Failed to change kernel [FetchError: request to http://localhost:8888/api/contents/?1605413760925 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:1:397314)
at ClientRequest.emit (events.js:223:5)
at Socket.socketErrorListener (_http_client.js:406:9)
at Socket.emit (events.js:223:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:81:21)]
Error 2020-11-15 05:16:02: Failed to connect to server [a [Error]: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415] {
kernelConnectionMetadata: {
kernelSpec: a {
name: 'python3',
argv: [Array],
language: 'python',
path: 'python',
specFile: undefined,
display_name: 'Python 3',
metadata: {},
env: {}
},
interpreter: {
architecture: 3,
path: 'C:\\Users\\Beubeuh\\AppData\\Local\\Programs\\Python\\Python39\\python.exe',
version: [Object],
sysVersion: '3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)]',
sysPrefix: 'C:\\Users\\Beubeuh\\AppData\\Local\\Programs\\Python\\Python39',
fileHash: 'ca3bb5a0864f48ce434d1c35ef5bd2bfb935e16fee3ce67820110118fb7515f05d3c844b4993fcccf2c68fed25bccc619d0c4423cd3e581d89cab1df37475279',
companyDisplayName: 'Python Software Foundation',
envType: 'Unknown',
displayName: 'Python 3.9.0 64-bit'
},
kind: 'startUsingKernelSpec'
}
}
Error 2020-11-15 05:16:02: Failed to initialize S [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:16:02: Failed to initialize ipywidgetHandler [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:16:02: Exception attempting to start notebook: [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:16:02: DataScience Error [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:16:07: SessionManager cannot enumerate kernelspecs. Returning default.
Connecting to Jupyter server at http://localhost:8888/
Error 2020-11-15 05:16:09: Failed to change kernel [FetchError: request to http://localhost:8888/api/contents/?1605413767031 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:1:397314)
at ClientRequest.emit (events.js:223:5)
at Socket.socketErrorListener (_http_client.js:406:9)
at Socket.emit (events.js:223:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:81:21)]
Error 2020-11-15 05:16:09: Failed to connect to server [a [Error]: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415] {
kernelConnectionMetadata: {
kernelSpec: a {
name: 'python3',
argv: [Array],
language: 'python',
path: 'python',
specFile: undefined,
display_name: 'Python 3',
metadata: {},
env: {}
},
interpreter: {
architecture: 3,
path: 'C:\\Users\\Beubeuh\\AppData\\Local\\Programs\\Python\\Python39\\python.exe',
version: [Object],
sysVersion: '3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)]',
sysPrefix: 'C:\\Users\\Beubeuh\\AppData\\Local\\Programs\\Python\\Python39',
fileHash: 'ca3bb5a0864f48ce434d1c35ef5bd2bfb935e16fee3ce67820110118fb7515f05d3c844b4993fcccf2c68fed25bccc619d0c4423cd3e581d89cab1df37475279',
companyDisplayName: 'Python Software Foundation',
envType: 'Unknown',
displayName: 'Python 3.9.0 64-bit'
},
kind: 'startUsingKernelSpec'
}
}
Error 2020-11-15 05:16:09: Exception attempting to start notebook: [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:16:09: DataScience Error [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:27:47: SessionManager cannot enumerate kernelspecs. Returning default.
Connecting to Jupyter server at http://localhost:8888/
Error 2020-11-15 05:27:49: Failed to change kernel [FetchError: request to http://localhost:8888/api/contents/?1605414467599 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:1:397314)
at ClientRequest.emit (events.js:223:5)
at Socket.socketErrorListener (_http_client.js:406:9)
at Socket.emit (events.js:223:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:81:21)]
Error 2020-11-15 05:27:49: Failed to connect to server [a [Error]: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415] {
kernelConnectionMetadata: {
kernelSpec: a {
name: 'python3',
argv: [Array],
language: 'python',
path: 'python',
specFile: undefined,
display_name: 'Python 3',
metadata: {},
env: {}
},
interpreter: {
architecture: 3,
path: 'C:\\Users\\Beubeuh\\AppData\\Local\\Programs\\Python\\Python39\\python.exe',
version: [Object],
sysVersion: '3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)]',
sysPrefix: 'C:\\Users\\Beubeuh\\AppData\\Local\\Programs\\Python\\Python39',
fileHash: 'ca3bb5a0864f48ce434d1c35ef5bd2bfb935e16fee3ce67820110118fb7515f05d3c844b4993fcccf2c68fed25bccc619d0c4423cd3e581d89cab1df37475279',
companyDisplayName: 'Python Software Foundation',
envType: 'Unknown',
displayName: 'Python 3.9.0 64-bit'
},
kind: 'startUsingKernelSpec'
}
}
Error 2020-11-15 05:27:49: Failed to initialize S [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:27:49: Failed to initialize ipywidgetHandler [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:27:49: Exception attempting to start notebook: [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:27:49: DataScience Error [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:27:53: SessionManager cannot enumerate kernelspecs. Returning default.
Connecting to Jupyter server at http://localhost:8888/
Error 2020-11-15 05:27:55: Failed to change kernel [FetchError: request to http://localhost:8888/api/contents/?1605414473727 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
at ClientRequest.<anonymous> (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:1:397314)
at ClientRequest.emit (events.js:223:5)
at Socket.socketErrorListener (_http_client.js:406:9)
at Socket.emit (events.js:223:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:81:21)]
Error 2020-11-15 05:27:55: Failed to connect to server [a [Error]: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415] {
kernelConnectionMetadata: {
kernelSpec: a {
name: 'python3',
argv: [Array],
language: 'python',
path: 'python',
specFile: undefined,
display_name: 'Python 3',
metadata: {},
env: {}
},
interpreter: {
architecture: 3,
path: 'C:\\Users\\Beubeuh\\AppData\\Local\\Programs\\Python\\Python39\\python.exe',
version: [Object],
sysVersion: '3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)]',
sysPrefix: 'C:\\Users\\Beubeuh\\AppData\\Local\\Programs\\Python\\Python39',
fileHash: 'ca3bb5a0864f48ce434d1c35ef5bd2bfb935e16fee3ce67820110118fb7515f05d3c844b4993fcccf2c68fed25bccc619d0c4423cd3e581d89cab1df37475279',
companyDisplayName: 'Python Software Foundation',
envType: 'Unknown',
displayName: 'Python 3.9.0 64-bit'
},
kind: 'startUsingKernelSpec'
}
}
Error 2020-11-15 05:27:55: Exception attempting to start notebook: [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Error 2020-11-15 05:27:55: DataScience Error [i [Error]:
at new i (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:9:110950)
at c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:617843
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Error: Kernel Python 3 is not usable. Check the Jupyter output tab for more information.
at v.createNewKernelSession (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559717)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async v.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:559184)
at async m.startNew (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:554652)
at async y.connect (c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:49:525585)
at async c:\Users\Beubeuh\.vscode\extensions\ms-toolsai.jupyter-2020.11.358541065\out\client\extension.js:32:616415]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Failed to connect to Jupyter notebook. http://localhost:8888 ...
Actual behaviour. Failed to connect to Jupyter notebook. http://localhost:8888/ Error: Kernel Python 3.8.2 64-bit is not usable with ...
Read more >Connection Failed to remote jupyter notebook - Stack Overflow
The issue seems to be that I needed to type localhost:8888 in to the browser on my local machine.
Read more >localhost refused to connect - worked initially, but not anymore
I terminated all the windows and wanted to restart as above, but now when jupyter labs starts, I get 'localhost refused to connect.'...
Read more >Jupyter notebook localhost error - General
I'm running Jupyter notebook on a windows 10 VM, locally. ... to access notebook via https://localhost:8888 or 127.0.0.1:8888 with the token ...
Read more >Running a notebook server — Jupyter Notebook 6.2.0 ...
By default, a notebook server runs locally at 127.0.0.1:8888 and is accessible only from localhost . You may access the notebook server from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think I shouldn’t had opened an issue on both Jupyter and Python. There was a duplicate in vscode-python that you moved here: https://github.com/microsoft/vscode-jupyter/issues/3925
The “Log” in the top post is actually from the Jupyter output. The “python” mention is erroneous (copy pasted the bug report form, but changed the log)
Yes, Jupyter is running fine.
Seems to be solved as of python extension version 2020.12.4244.