Connecting to kernel Error in jupyter notebook
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
Jupyter notebook is not connecting to the kernel please help...
**Console:**
menubar.js:304 actions jupyter-notebook:find-and-replace does not exist, still binding it in case it will be defined later...
MenuBar.bind_events @ menubar.js:304
utils.js:60 load_extensions Arguments(1)
utils.js:37 Loading extension: jupyter-js-widgets/extension
session.js:54 Session: kernel_created (42849d61-28c2-4af3-8c37-00bf1d114c30)
kernel.js:459 Starting WebSockets: ws://localhost:8889/api/kernels/c1caa16e-9114-4d6c-8055-e963c008294c
kernel.js:103 Kernel: kernel_restarting (c1caa16e-9114-4d6c-8055-e963c008294c)
kernel.js:461 WebSocket connection to 'ws://localhost:8889/api/kernels/c1caa16e-9114-4d6c-8055-e963c008294c/channels?session_id=11A87E5559474965A70FFE3D78066D78' failed: Error during WebSocket handshake: Unexpected response code: 200
Kernel.start_channels @ kernel.js:461
kernel.js:103 Kernel: kernel_disconnected (c1caa16e-9114-4d6c-8055-e963c008294c)
kernel.js:544 WebSocket connection failed: ws://localhost:8889/api/kernels/c1caa16e-9114-4d6c-8055-e963c008294c true
kernel.js:562 Connection lost, reconnecting in 1 seconds.
kernel.js:103 Kernel: kernel_reconnecting (c1caa16e-9114-4d6c-8055-e963c008294c)
kernel.js:459 Starting WebSockets: ws://localhost:8889/api/kernels/c1caa16e-9114-4d6c-8055-e963c008294c
DevTools failed to load SourceMap: Could not load content for http://localhost:8889/static/components/preact/preact.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for http://localhost:8889/static/components/preact-compat/preact-compat.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for http://localhost:8889/static/components/proptypes/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
**Kernel Error:**
Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\web.py", line 1703, in _execute
result = await result
File "C:\Users\ADMIN\anaconda3\lib\site-packages\tornado\gen.py", line 748, in run
yielded = self.gen.send(value)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebook\services\sessions\handlers.py", line 67, in post
model = yield gen.maybe_future(sm.get_session(path=path))
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebook\services\sessions\sessionmanager.py", line 170, in get_session
return self.row_to_model(row)
File "C:\Users\ADMIN\AppData\Roaming\Python\Python36\site-packages\notebook\services\sessions\sessionmanager.py", line 209, in row_to_model
raise KeyError
KeyError
Contributor guide
Research direction
Start with notebook/services/sessions/handlers.py and notebook/services/sessions/sessionmanager.py, especially get_session and row_to_model, then review the reported WebSocket and kernel restart messages. Reproduce the session-creation failure and determine what behavior should prevent the KeyError and allow the kernel connection to complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100