Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter Server: No Kernel #5182

Open
pawlowski6132 opened this issue Jan 24, 2020 · 2 comments
Open

Jupyter Server: No Kernel #5182

pawlowski6132 opened this issue Jan 24, 2020 · 2 comments

Comments

@pawlowski6132
Copy link

I've researched this issue for two days now and can't seem to figure this one out. I can't seem to get connected. I'm trying to run Jupyter Notebook in a few different configurations: In Studio code and stand alone. I'm having the exact same issues on two different wintel machines. One a corp machine, the other personal. I have Python 3.8 on both NON anaconda. Windows 10. Also having same issue with fresh Anaconda install on second machine.

I would really like to be able to use Jupyter Notebooks as I have three boys who are eager to start learning Python but, I can't get through this issue to use these. Any help would be greatly appreciated.

Here's the output details:

C:\Users\jopawlow>jupyter notebook --port 1900
[W 07:26:20.473 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 07:26:20.473 NotebookApp] Serving notebooks from local directory: C:\Users\jopawlow
[I 07:26:20.474 NotebookApp] The Jupyter Notebook is running at:
[I 07:26:20.474 NotebookApp] http://localhost:1900/?token=5f82a2009bd791c87087e28adfbaedcbc97245735fc2292b
[I 07:26:20.474 NotebookApp] or http://127.0.0.1:1900/?token=5f82a2009bd791c87087e28adfbaedcbc97245735fc2292b
[I 07:26:20.474 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 07:26:20.798 NotebookApp]

To access the notebook, open this file in a browser:
    file:///C:/Users/jopawlow/AppData/Roaming/jupyter/runtime/nbserver-14700-open.html
Or copy and paste one of these URLs:
    http://localhost:1900/?token=5f82a2009bd791c87087e28adfbaedcbc97245735fc2292b
 or http://127.0.0.1:1900/?token=5f82a2009bd791c87087e28adfbaedcbc97245735fc2292b

[W 07:26:32.446 NotebookApp] 404 GET /undefined (127.0.0.1) 29.00ms referer=None
[I 07:26:32.470 NotebookApp] Creating new notebook in
[I 07:26:35.209 NotebookApp] Kernel started: d3d0d9f4-2058-4084-92da-9107e65db82f
[W 07:26:35.267 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200124072619 (127.0.0.1) 51.00ms referer=http://localhost:1900/notebooks/Untitled3.ipynb?kernel_name=python38032bit9b5acfee8b854d0d93ac0e2f85d921b8
Traceback (most recent call last):
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipykernel_launcher.py", line 16, in
app.launch_new_instance()
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance
app.initialize(argv)
File "<C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\decorator.py:decorator-gen-125>", line 2, in initialize
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipykernel\kernelapp.py", line 527, in initialize
self.init_sockets()
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipykernel\kernelapp.py", line 287, in init_sockets
self.init_iopub(context)
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipykernel\kernelapp.py", line 295, in init_iopub
self.iopub_thread = IOPubThread(self.iopub_socket, pipe=True)
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipykernel\iostream.py", line 68, in init
self._setup_pipe_in()
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipykernel\iostream.py", line 141, in _setup_pipe_in
self._pipe_in = ZMQStream(pipe_in, self.io_loop)
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\zmq\eventloop\zmqstream.py", line 127, in init
self._init_io_state()
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\zmq\eventloop\zmqstream.py", line 546, in _init_io_state
self.io_loop.add_handler(self.socket, self._handle_events, self.io_loop.READ)
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tornado\platform\asyncio.py", line 99, in add_handler
self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
File "C:\Users\jopawlow\AppData\Local\Programs\Python\Python38-32\lib\asyncio\events.py", line 501, in add_reader
raise NotImplementedError
NotImplementedError
[W 07:27:35.309 NotebookApp] Timeout waiting for kernel_info reply from d3d0d9f4-2058-4084-92da-9107e65db82f
[I 07:28:10.900 NotebookApp] Starting buffering for d3d0d9f4-2058-4084-92da-9107e65db82f:20bc1394b5a746bd8bf7e8c5aa27d9f2
[I 07:31:35.576 NotebookApp] Shutting down on /api/shutdown request.
[I 07:31:35.581 NotebookApp] Shutting down 1 kernel
[I 07:31:40.617 NotebookApp] Kernel shutdown: d3d0d9f4-2058-4084-92da-9107e65db82f

Thank you in advance. I really appreciate the guidance.

@kevin-bates
Copy link
Member

This is related to the Win10/py38 issue and fixed via #5047.

Now that notebook 6.0.3 is available and contains the appropriate fix, please upgrade notebook.

pip install notebook --upgrade

or, for conda envs,

conda update -c conda-forge notebook

Note. If you're using ipykernel, you'll likely need to upgrade that as well, but I don't think it has been released, so an install from GitHub would be warranted.

@pawlowski6132
Copy link
Author

pawlowski6132 commented Jan 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants