Jupyter notebook can't connect to the kernel

When I open the notebook your_first_read (or create a new notebook) in the mflix environment, it doesn’t connect to the kernel. Here’s some text that appeared in the Anaconda Prompt window:

(mflix) C:\Users\Kim Sullivan\Documents\M220>jupyter notebook
[I 09:59:41.900 NotebookApp] Serving notebooks from local directory: C:\Users\Kim Sullivan\Documents\M220
[I 09:59:41.900 NotebookApp] The Jupyter Notebook is running at:
[I 09:59:41.900 NotebookApp] http://localhost:8888/?token=514cbe264edd923c902637f03c6d0a44989e79b005dcb8ac
[I 09:59:41.900 NotebookApp] or http://127.0.0.1:8888/?token=514cbe264edd923c902637f03c6d0a44989e79b005dcb8ac
[I 09:59:41.900 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:59:41.963 NotebookApp]

To access the notebook, open this file in a browser:
    file:///C:/Users/Kim%20Sullivan/AppData/Roaming/jupyter/runtime/nbserver-13752-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=514cbe264edd923c902637f03c6d0a44989e79b005dcb8ac
 or http://127.0.0.1:8888/?token=514cbe264edd923c902637f03c6d0a44989e79b005dcb8ac

[I 10:00:01.354 NotebookApp] Kernel started: 6b631a1a-31bf-427a-a658-897a3feba80e
[E 10:00:02.412 NotebookApp] Uncaught exception GET /api/kernels/6b631a1a-31bf-427a-a658-897a3feba80e/channels?session_id=89185581fff541faa120018d7ed695f6 (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:8888’, method=‘GET’, uri=’/api/kernels/6b631a1a-31bf-427a-a658-897a3feba80e/channels?session_id=89185581fff541faa120018d7ed695f6’, version=‘HTTP/1.1’, remote_ip=’::1’)
Traceback (most recent call last):
File “d:\anaconda\envs\mflix\lib\site-packages\tornado\websocket.py”, line 956, in accept_connection
open_result = handler.open(*handler.open_args, **handler.open_kwargs)
File “d:\anaconda\envs\mflix\lib\site-packages\notebook\services\kernels\handlers.py”, line 274, in open
self.create_stream()
File “d:\anaconda\envs\mflix\lib\site-packages\notebook\services\kernels\handlers.py”, line 127, in create_stream
meth = getattr(km, 'connect
’ + channel)
AttributeError: ‘MappingKernelManager’ object has no attribute ‘connect_control’
[W 10:00:03.437 NotebookApp] Replacing stale connection: 6b631a1a-31bf-427a-a658-897a3feba80e:89185581fff541faa120018d7ed695f6
[I 10:04:03.442 NotebookApp] Starting buffering for 6b631a1a-31bf-427a-a658-897a3feba80e:89185581fff541faa120018d7ed695f6

This problem doesn’t occur in the base (root) environment.

Did you try opening this url? If yes, please share the screenshot here.

Kanika

I update the Juniper packages and they works fine.

jupyter-client     5.2.4   5.3.1  wheel
jupyter-core       4.4.0   4.5.0  wheel

All the best,

JNetto

1 Like