Cannot execute Python/Jupyter code - Need troubleshooting tool or guide.
See original GitHub issueEnvironment data
- VS Code version: XXX
Version: 1.55.0-insider (user setup)
Commit: c185983a683d14c396952dd432459097bc7f757f
Date: 2021-03-30T12:48:52.547Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19041
- Jupyter Extension version (available under the Extensions sidebar): XXX
- Python Extension version (available under the Extensions sidebar): XXX
- OS (Windows | Mac | Linux distro) and version: Windows + WSL (Ubuntu 20.04)
- Python and/or Anaconda version: XXX
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): XXX
- Jupyter server running: Local | Remote | N/A
Can’t run even a simple Python cell in Jupyter (native notebook)
Dev Tools Console:
Steps to reproduce:
- New notebook
- New Code Cell
print("hello world")
- Press
run
button
Results:
- Sometimes I get the “Connecting to kernel: Python 3” message, sometimes nothing
Logs
Output for Jupyter
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Jupyter
)
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'pythonDiscoveryModule'
User belongs to experiment group 'pythonFindInterpreter'
User belongs to experiment group 'NativeNotebookEditor'
Info 2021-03-30 12:56:31: ZMQ install verified.
Info 2021-03-30 12:56:31: Attempting to start a server because of preload conditions ...
Info 2021-03-30 12:56:31: Found existing keyfile at /home/chrisdias/.vscode-server-insiders/data/User/globalStorage/ms-toolsai.jupyter/nbsecret
Info 2021-03-30 12:56:32: Checking if notebook is trusted
Info 2021-03-30 12:56:32: Check if Notebook is Trusted, Class name = p, completed in 74ms, has a truthy return value, Return Value: true
Info 2021-03-30 12:56:33: Attempting to start a server because of preload conditions ...
Info 2021-03-30 12:56:33: Search all interpreters /bin/python2, /bin/python3, /usr/bin/python2, /usr/bin/python3
Info 2021-03-30 12:56:34: Loading kernelspec from /home/chrisdias/.local/share/jupyter/kernels/python3/kernel.json for undefined
Info 2021-03-30 12:56:34: findPreferredKernel score for Python 3 is 15
Info 2021-03-30 12:56:34: findPreferredKernel score for Python 2.7.18 64-bit is 1
Info 2021-03-30 12:56:34: findPreferredKernel score for Python 3.8.5 64-bit is 1
Info 2021-03-30 12:56:34: findPreferredKernel score for Python 2.7.18 64-bit is 1
Info 2021-03-30 12:56:34: findPreferredKernel score for Python 3.8.5 64-bit is 1
Info 2021-03-30 12:56:34: Find kernel spec, Class name = D, completed in 4ms, has a truthy return value, Arg 1: <Uri:/home/chrisdias/src/mvpSummit2021/wa_state_covid.ipynb>, Arg 2: {"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":""},"orig_nbformat":2}, Arg 3: {"_isCancelled":false,"_emitter":null}, Return Value: {"kind":"startUsingKernelSpec","kernelSpec":{"specFile":"/home/chrisdias/.local/share/jupyter/kernels/python3/kernel.json","name":"python3","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3"},"id":".python3.python..Python 3"}
Info 2021-03-30 12:56:34: KernelProvider switched kernel to id = .python3.python..Python 3}
Info 2021-03-30 12:56:34: Starting Notebook in kernel.ts id = .python3.python..Python 3
Info 2021-03-30 12:56:34: Creating raw notebook for file:///home/chrisdias/src/mvpSummit2021/wa_state_covid.ipynb
Info 2021-03-30 12:56:34: Getting preferred kernel for file:///home/chrisdias/src/mvpSummit2021/wa_state_covid.ipynb
Info 2021-03-30 12:56:34: Computing working directory file:///home/chrisdias/src/mvpSummit2021/wa_state_covid.ipynb
Info 2021-03-30 12:56:34: Connecting to raw session for file:///home/chrisdias/src/mvpSummit2021/wa_state_covid.ipynb with connection {"kind":"startUsingKernelSpec","kernelSpec":{"specFile":"/home/chrisdias/.local/share/jupyter/kernels/python3/kernel.json","name":"python3","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3"},"id":".python3.python..Python 3"}
Info 2021-03-30 12:56:34: Starting raw kernel Python 3
Info 2021-03-30 12:56:34: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 2021-03-30 12:56:34: Launching kernel daemon for Python 3 # undefined
Info 2021-03-30 12:56:34: No custom variables for Kernel as interpreter path is not defined for kernel Python 3
Info 2021-03-30 12:56:34: Creating daemon process for python with env variables count 0
Info 2021-03-30 12:56:35: Process Execution: > python ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> python ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-03-30 12:56:35: Process Execution: > python ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> python ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-03-30 12:56:40: Failed to start the Daemon, StdErr:
Error 2021-03-30 12:56:40: Failed to start the Daemon, ProcEndEx [Error: spawn python ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn python',
path: 'python',
spawnargs: [
'/home/chrisdias/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py',
'vscode_datascience_helpers.daemon',
'--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon',
'-v'
]
}
Error 2021-03-30 12:56:40: Failed to start the Daemon, Ex [Error: Timeout waiting for daemon to start
at Timeout._onTimeout (/home/chrisdias/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/out/client/extension.js:32:241494)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)]
Error 2021-03-30 12:56:40: Pinging Daemon Failed, Class name = d, completed in 5006ms, has a falsy return value, Arg 1: {}, Return Value: undefined [Error: Timeout waiting for daemon to start
at Timeout._onTimeout (/home/chrisdias/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/out/client/extension.js:32:241494)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)]
Error 2021-03-30 12:56:40: Failed to create daemon, Class name = d, completed in 5091ms, has a falsy return value, , Return Value: undefined [Error: Timeout waiting for daemon to start
at Timeout._onTimeout (/home/chrisdias/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/out/client/extension.js:32:241494)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)]
Error 2021-03-30 12:56:40: Failed to create the daemon service, defaulting to activated environment [Error: Timeout waiting for daemon to start
at Timeout._onTimeout (/home/chrisdias/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/out/client/extension.js:32:241494)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)]
Info 2021-03-30 12:56:40: Process Execution: > python ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"a189c17a-f76f-457b-9e8f-1ae84a0397a4" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-22067vfLSwP3a1ABS.json
> python ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"a189c17a-f76f-457b-9e8f-1ae84a0397a4" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-22067vfLSwP3a1ABS.json
Info 2021-03-30 12:56:40: Process Execution: cwd: ~/src/mvpSummit2021
cwd: ~/src/mvpSummit2021
Info 2021-03-30 12:56:40: Process Execution: > python ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"a189c17a-f76f-457b-9e8f-1ae84a0397a4" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-22067vfLSwP3a1ABS.json
> python ~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"a189c17a-f76f-457b-9e8f-1ae84a0397a4" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-22067vfLSwP3a1ABS.json
Info 2021-03-30 12:56:40: Process Execution: cwd: ~/src/mvpSummit2021
cwd: ~/src/mvpSummit2021
Info 2021-03-30 12:56:40: Launching kernel daemon, Class name = h, completed in 5695ms, has a truthy return value, Arg 1: <Uri:/home/chrisdias/src/mvpSummit2021/wa_state_covid.ipynb>, Arg 2: "/home/chrisdias/src/mvpSummit2021", Arg 3: {"specFile":"/home/chrisdias/.local/share/jupyter/kernels/python3/kernel.json","name":"python3","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"a189c17a-f76f-457b-9e8f-1ae84a0397a4\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=/tmp/tmp-22067vfLSwP3a1ABS.json"],"language":"python","path":"python","display_name":"Python 3"}, Arg 4: undefined, Return Value: {"observableOutput":{"proc":{"_events":{},"_eventsCount":0,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"python","_handle":{},"spawnargs":["python","/home/chrisdias/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"a189c17a-f76f-457b-9e8f-1ae84a0397a4\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=/tmp/tmp-22067vfLSwP3a1ABS.json"],"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{},"_eventsCount":1,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":2,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":2,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{},"_eventsCount":1,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":2,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":2,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false}}}
Info 2021-03-30 12:56:40: Launching kernel in kernelProcess.ts, Class name = _, completed in 5696ms, has a truthy return value, Arg 1: "/home/chrisdias/src/mvpSummit2021", Return Value: {"proc":{"_events":{},"_eventsCount":0,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"python","_handle":{},"spawnargs":["python","/home/chrisdias/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"a189c17a-f76f-457b-9e8f-1ae84a0397a4\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=/tmp/tmp-22067vfLSwP3a1ABS.json"],"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{},"_eventsCount":1,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":2,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":2,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":false,"_events":{},"_eventsCount":1,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":true,"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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":2,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":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":null,"pipesCount":0,"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"readable":true,"_events":{},"_eventsCount":2,"_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,"bufferedRequest":null,"lastBufferedRequest":null,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"bufferedRequestCount":0,"corkedRequestsFree":{"next":null,"entry":null}},"writable":false,"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false}}
Error 2021-03-30 12:56:40: Kernel died [Error: spawn python ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)] {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn python',
path: 'python',
spawnargs: [
'/home/chrisdias/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.5.700832604/pythonFiles/pyvsc-run-isolated.py',
'ipykernel_launcher',
'--ip=127.0.0.1',
'--stdin=9003',
'--control=9001',
'--hb=9000',
'--Session.signature_scheme="hmac-sha256"',
'--Session.key=b"a189c17a-f76f-457b-9e8f-1ae84a0397a4"',
'--shell=9002',
'--transport="tcp"',
'--iopub=9004',
'--f=/tmp/tmp-22067vfLSwP3a1ABS.json'
]
}
XXX
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Can't run Jupyter Notebook in VSCode - Vanilla Python ...
Can't run Jupyter Notebook in VSCode - Vanilla Python, Windows 10 · Press Command+Shift+P to open a new command pallete · Type >Python:...
Read more >Working with Jupyter Notebooks in Visual Studio Code
To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P). Once the appropriate environment is activated, ...
Read more >What to do when things go wrong - The Jupyter Notebook
What to do when things go wrong . First, have a look at the common problems listed below. If you can figure...
Read more >Solve problems with Jupyter Notebooks - coursera.support
If your Jupyter Notebook files have disappeared, it means the course staff published a new version of a given notebook to fix problems...
Read more >How to Write and Run Code in Jupyter Notebook - Edlitera
To launch Jupyter notebooks, I have to first launch the command line. I will then navigate to my desired folder, which for me...
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
ok i deleted it and i’ll keep an eye out for changes.
i feel like a diagnostic tool for the kernels might be helpful… Imagine you run a command
Jupyter: Validate Kernels
which would “profile” each discovered kernelspec and generate a report that could be uploaded along with an issue.Something like this (completely made up Status 😃 would have helped me pinpoint the problem, assuming you could run some sort of diagnostics against them.
python
Duplicate of https://github.com/microsoft/vscode-jupyter/issues/5291