Notebook: "not implemented" message with jupyter notebook under python-3.8.0a4 (due to switch to "proactor" loop on windows)

Created on 8 May 2019  路  42Comments  路  Source: jupyter/notebook

I have this strange message with Tornado-5.1.1 and Jupyter Notebook

````
Traceback (most recent call last):
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\scripts\jupyter-notebook.exe__main__.py", line 9, in
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, *kwargs)
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\traitlets\config\application.py", line 657, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, *
kwargs)
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\notebook\notebookapp.py", line 1630, in initialize
self.init_webapp()
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\notebook\notebookapp.py", line 1407, in init_webapp
self.http_server.listen(port, self.ip)
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\tornado\tcpserver.py", line 144, in listen
self.add_sockets(sockets)
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\tornado\tcpserver.py", line 157, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\tornado\netutil.py", line 268, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\lib\site-packages\tornado\platformasyncio.py", line 79, in add_handler
self.asyncio_loop.add_reader(
File "C:\WinP\bd38\bu\WPy64-3800a4\python-3.8.0a4.amd64\libasyncio\events.py", line 499, in add_reader
raise NotImplementedError
NotImplementedError

````

Does anyone as a clue of the problem ? is it a Tornado, a Notebook, a Python-3.8.0a4 bug (or feature) ?

Most helpful comment

workaround from https://stackoverflow.com/a/58430041:

add this to tornado/platform/asyncio.py after the main imports:

import sys

if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

All 42 comments

Life on the edge - this appears to be a side-affect of Python 3.8 on Windows: https://github.com/tornadoweb/tornado/issues/2608.

yes, Python masters do alpha of python-3.8.0.a4, so I suppose it is to use it for some blood-bath testing, like a good episode of GOT.

and so apparently, Tornado has zero intention to use the "Proactor" event loop.

Maybe Jupyter Notebook has to implement a change ? or ask Python asyncio masters to revert to previous default ?

and there may be also further impact on "async exec", if it lands in Python-3.8.0b1 https://bugs.python.org/issue34616

so @jasongrout , as Tornado team doesn't whish to enforce this, it seems the Jupyter applications have to replace in all its packages that can launch first the asyncio loop :

import asyncio
per

`````
import asyncio
import sys
if sys.platform == 'win32' and sys.version_info > (3, 8, 0, 'alpha', 3) :
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
``````

@stonebig What if users want to configure another event loop policy, as mentioned here: https://github.com/jupyter/notebook/pull/4184#issuecomment-439386831

How about calling asyncio.get_event_loop_policy() to check if the problematic Windows policy is actually in effect, and only setting a different one in that case?

@rolweber my "hard way" fix is for sure lacking in subtlety. it's alpha4 answer to alpha4 problem.

ah, maybe hope from another direction https://bugs.python.org/issue29883

Apparently there is an undocumentd solution https://github.com/python-trio/trio/issues/52, and Nathaniel looks enthousiastic https://github.com/python-trio/trio/issues/52#issuecomment-426408349

It seems that the problem is still there for the final 3.8.0. Is there a timeline for a fix? Should there at least be a warning on the Jupyter website to stop Windows users from upgrading their Python distribution.

(My English is poor). If some people fix that, what will I do? upgrade python or upgrade jupyter?

(My English is poor). If some people fix that, what will I do? upgrade python or upgrade jupyter?

Upgrade jupyter or any affiliated package

@jackexu thank you.

Still not fixed...

Still not fixed...

Fixed now - upgrade jupyter-core to 4.6.1

No, it's not. Look:

Installing:

C:\WINDOWS\system32>pip install jupyterlab
Requirement already satisfied: jupyterlab in c:\program files (x86)\python38-32\lib\site-packages (1.1.4)
Requirement already satisfied: jupyterlab-server~=1.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from jupyterlab) (1.0.6)
Requirement already satisfied: tornado!=6.0.0,!=6.0.1,!=6.0.2 in c:\program files (x86)\python38-32\lib\site-packages (from jupyterlab) (6.0.3)
Requirement already satisfied: notebook>=4.3.1 in c:\program files (x86)\python38-32\lib\site-packages (from jupyterlab) (6.0.1)
Requirement already satisfied: jinja2>=2.10 in c:\program files (x86)\python38-32\lib\site-packages (from jupyterlab) (2.10.3)
Requirement already satisfied: json5 in c:\program files (x86)\python38-32\lib\site-packages (from jupyterlab-server~=1.0.0->jupyterlab) (0.8.5)
Requirement already satisfied: jsonschema>=3.0.1 in c:\program files (x86)\python38-32\lib\site-packages (from jupyterlab-server~=1.0.0->jupyterlab) (3.1.1)
Requirement already satisfied: pyzmq>=17 in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (18.1.0)
Requirement already satisfied: nbformat in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (4.4.0)
Requirement already satisfied: jupyter-core>=4.4.0 in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (4.6.1)
Requirement already satisfied: jupyter-client>=5.3.1 in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (5.3.4)
Requirement already satisfied: traitlets>=4.2.1 in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (4.3.3)
Requirement already satisfied: nbconvert in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (5.6.1)
Requirement already satisfied: ipykernel in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (5.1.3)
Requirement already satisfied: terminado>=0.8.1 in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (0.8.2)
Requirement already satisfied: prometheus-client in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (0.7.1)
Requirement already satisfied: Send2Trash in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (1.5.0)
Requirement already satisfied: ipython-genutils in c:\program files (x86)\python38-32\lib\site-packages (from notebook>=4.3.1->jupyterlab) (0.2.0)
Requirement already satisfied: MarkupSafe>=0.23 in c:\program files (x86)\python38-32\lib\site-packages (from jinja2>=2.10->jupyterlab) (1.1.1)
Requirement already satisfied: attrs>=17.4.0 in c:\program files (x86)\python38-32\lib\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (19.3.0)
Requirement already satisfied: importlib-metadata in c:\program files (x86)\python38-32\lib\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (0.23)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\program files (x86)\python38-32\lib\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (0.15.4)
Requirement already satisfied: setuptools in c:\program files (x86)\python38-32\lib\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (41.2.0)
Requirement already satisfied: six>=1.11.0 in c:\program files (x86)\python38-32\lib\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (1.12.0)
Requirement already satisfied: pywin32>=1.0; sys_platform == "win32" in c:\program files (x86)\python38-32\lib\site-packages (from jupyter-core>=4.4.0->notebook>=4.3.1->jupyterlab) (225)
Requirement already satisfied: python-dateutil>=2.1 in c:\program files (x86)\python38-32\lib\site-packages (from jupyter-client>=5.3.1->notebook>=4.3.1->jupyterlab) (2.8.0)
Requirement already satisfied: decorator in c:\program files (x86)\python38-32\lib\site-packages (from traitlets>=4.2.1->notebook>=4.3.1->jupyterlab) (4.4.0)
Requirement already satisfied: defusedxml in c:\program files (x86)\python38-32\lib\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.6.0)
Requirement already satisfied: testpath in c:\program files (x86)\python38-32\lib\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.4.2)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\program files (x86)\python38-32\lib\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (1.4.2)
Requirement already satisfied: pygments in c:\program files (x86)\python38-32\lib\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (2.4.2)
Requirement already satisfied: mistune<2,>=0.8.1 in c:\program files (x86)\python38-32\lib\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.8.4)
Requirement already satisfied: entrypoints>=0.2.2 in c:\program files (x86)\python38-32\lib\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.3)
Requirement already satisfied: bleach in c:\program files (x86)\python38-32\lib\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (3.1.0)
Requirement already satisfied: ipython>=5.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from ipykernel->notebook>=4.3.1->jupyterlab) (7.9.0)
Requirement already satisfied: pywinpty>=0.5; os_name == "nt" in c:\program files (x86)\python38-32\lib\site-packages (from terminado>=0.8.1->notebook>=4.3.1->jupyterlab) (0.5.5)
Requirement already satisfied: zipp>=0.5 in c:\program files (x86)\python38-32\lib\site-packages (from importlib-metadata->jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (0.6.0)
Requirement already satisfied: webencodings in c:\program files (x86)\python38-32\lib\site-packages (from bleach->nbconvert->notebook>=4.3.1->jupyterlab) (0.5.1)
Requirement already satisfied: jedi>=0.10 in c:\program files (x86)\python38-32\lib\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.15.1)
Requirement already satisfied: backcall in c:\program files (x86)\python38-32\lib\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.1.0)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in c:\program files (x86)\python38-32\lib\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (2.0.10)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\program files (x86)\python38-32\lib\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.4.1)
Requirement already satisfied: pickleshare in c:\program files (x86)\python38-32\lib\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.7.5)
Requirement already satisfied: more-itertools in c:\program files (x86)\python38-32\lib\site-packages (from zipp>=0.5->importlib-metadata->jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (7.2.0)
Requirement already satisfied: parso>=0.5.0 in c:\program files (x86)\python38-32\lib\site-packages (from jedi>=0.10->ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.5.1)
Requirement already satisfied: wcwidth in c:\program files (x86)\python38-32\lib\site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.1.7)


Running Notebook:

C:\WINDOWS\system32>jupyter notebook
Traceback (most recent call last):
  File "c:\program files (x86)\python38-32\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\program files (x86)\python38-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files (x86)\Python38-32\Scripts\jupyter-notebook.EXE\__main__.py", line 7, in <module>
  File "c:\program files (x86)\python38-32\lib\site-packages\jupyter_core\application.py", line 268, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "c:\program files (x86)\python38-32\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance
    app.initialize(argv)
  File "<c:\program files (x86)\python38-32\lib\site-packages\decorator.py:decorator-gen-7>", line 2, in initialize
  File "c:\program files (x86)\python38-32\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "c:\program files (x86)\python38-32\lib\site-packages\notebook\notebookapp.py", line 1679, in initialize
    self.init_webapp()
  File "c:\program files (x86)\python38-32\lib\site-packages\notebook\notebookapp.py", line 1442, in init_webapp
    self.http_server.listen(port, self.ip)
  File "c:\program files (x86)\python38-32\lib\site-packages\tornado\tcpserver.py", line 152, in listen
    self.add_sockets(sockets)
  File "c:\program files (x86)\python38-32\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
    self._handlers[sock.fileno()] = add_accept_handler(
  File "c:\program files (x86)\python38-32\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
    io_loop.add_handler(sock, accept_handler, IOLoop.READ)
  File "c:\program files (x86)\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:\program files (x86)\python38-32\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError

It is working on my Macbook but not on Windows...

In windows 10 getting the same error

Traceback (most recent call last):
File "c:\python3\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python3\Scripts\jupyter-notebook.EXE__main__.py", line 7, in
File "c:\python3\lib\site-packages\jupyter_core\application.py", line 268, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, *kwargs)
File "c:\python3\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "c:\python3\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, *
kwargs)
File "c:\python3\lib\site-packages\notebook\notebookapp.py", line 1679, in initialize
self.init_webapp()
File "c:\python3\lib\site-packages\notebook\notebookapp.py", line 1442, in init_webapp
self.http_server.listen(port, self.ip)
File "c:\python3\lib\site-packages\tornado\tcpserver.py", line 152, in listen
self.add_sockets(sockets)
File "c:\python3\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File "c:\python3\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File "c:\python3\lib\site-packages\tornado\platformasyncio.py", line 99, in add_handler
self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
File "c:\python3\libasyncio\events.py", line 501, in add_reader
raise NotImplementedError
NotImplementedError

workaround from https://stackoverflow.com/a/58430041:

add this to tornado/platform/asyncio.py after the main imports:

import sys

if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

workaround from https://stackoverflow.com/a/58430041:

add this to tornado/platform/asyncio.py after the main imports:

import sys

if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

that worked for me!! thank you :-)

workaround from https://stackoverflow.com/a/58430041:

add this to tornado/platform/asyncio.py after the main imports:

import sys

if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

It's working - Thank you!

yes, Python masters do alpha of python-3.8.0.a4, so I suppose it is to use it for some blood-bath testing, like a good episode of GOT.
(words to live by)

Why is that still broken?

Why is that still broken?

Because release 6.0.3, which will contain #5047, hasn't been create yet. In the meantime you'll need to build manually or install from github.

I faced the issue when installed conda + jupyter lab on windows 10. I installed both as described on websites of these distributions. I was able to solve the problem by installing python 3.7 instead of 3.8 that came with conda:
conda install python=3.7 anaconda=custom

I faced the issue when installed conda + jupyter lab on windows 10. I installed both as described on websites of these distributions. I was able to solve the problem by installing python 3.7 instead of 3.8 that came with conda:
conda install python=3.7 anaconda=custom

Works like a charm !

Because release 6.0.3, which will contain #5047, hasn't been create yet.

Can I find a timeline for that somewhere? If it's just a short amount of time I'll wait before trying to hack my local install.

Because release 6.0.3, which will contain #5047, hasn't been create yet.

Can I find a timeline for that somewhere? If it's just a short amount of time I'll wait before trying to hack my local install.

Echoing: is 6.0.3 coming soon? I have some 3.8 only code I really want to start using in notebooks. And the workaround gets removed when I install jupyter to my virtual environment.

FYI -- this problem remains: Windows 10, Python 3.8.0

pip install jupyterlab
Collecting jupyterlab
Downloading https://files.pythonhosted.org/packages/35/9a/6e81535ed42ad01ec2a5e8f9e0419108f60fab36e48dc1168fa5e0576a81/jupyterlab-1.2.4-py2.py3-none-any.whl (6.4MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 6.4MB 3.3MB/s
Collecting notebook>=4.3.1
Downloading https://files.pythonhosted.org/packages/f5/69/d2ffaf7efc20ce47469187e3a41e6e03e17b45de5a6559f4e7ab3eace5e1/notebook-6.0.2-py3-none-any.whl (9.7MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 9.7MB 345kB/s
Collecting jupyterlab-server~=1.0.0
Downloading https://files.pythonhosted.org/packages/78/98/5b87b9d38176bd98f23b58a8fb730e5124618d68571a011abbd38ad4a842/jupyterlab_server-1.0.6-py3-none-any.whl
Collecting jinja2>=2.10
Using cached https://files.pythonhosted.org/packages/65/e0/eb35e762802015cab1ccee04e8a277b03f1d8e53da3ec3106882ec42558b/Jinja2-2.10.3-py2.py3-none-any.whl
Collecting tornado!=6.0.0,!=6.0.1,!=6.0.2
Downloading https://files.pythonhosted.org/packages/30/78/2d2823598496127b21423baffaa186b668f73cd91887fcef78b6eade136b/tornado-6.0.3.tar.gz (482kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 491kB ...
Collecting ipython-genutils
Downloading https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting Send2Trash
Downloading https://files.pythonhosted.org/packages/49/46/c3dc27481d1cc57b9385aff41c474ceb7714f7935b1247194adae45db714/Send2Trash-1.5.0-py3-none-any.whl
Collecting pyzmq>=17
Downloading https://files.pythonhosted.org/packages/7d/f1/4b12dd1f7dcffb3875350f1a52b9a325d68539b9abfd7d4ee65bd20e7f5e/pyzmq-18.1.1-cp38-cp38-win_amd64.whl (1.1MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.1MB 6.4MB/s
Collecting terminado>=0.8.1
Downloading https://files.pythonhosted.org/packages/ff/96/1d9a2c23990aea8f8e0b5c3b6627d03196a73771a17a2d9860bbe9823ab6/terminado-0.8.3-py2.py3-none-any.whl
Collecting jupyter-core>=4.6.0
Downloading https://files.pythonhosted.org/packages/fb/82/86437f661875e30682e99d04c13ba6c216f86f5f6ca6ef212d3ee8b6ca11/jupyter_core-4.6.1-py2.py3-none-any.whl (82kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 92kB 6.1MB/s
Collecting ipykernel
Downloading https://files.pythonhosted.org/packages/e1/92/8fec943b5b81078399f969f00557804d884c96fcd0bc296e81a2ed4fd270/ipykernel-5.1.3-py3-none-any.whl (116kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 122kB 6.4MB/s
Collecting jupyter-client>=5.3.4
Downloading https://files.pythonhosted.org/packages/13/81/fe0eee1bcf949851a120254b1f530ae1e01bdde2d3ab9710c6ff81525061/jupyter_client-5.3.4-py2.py3-none-any.whl (92kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 92kB 5.8MB/s
Collecting nbconvert
Downloading https://files.pythonhosted.org/packages/79/6c/05a569e9f703d18aacb89b7ad6075b404e8a4afde2c26b73ca77bb644b14/nbconvert-5.6.1-py2.py3-none-any.whl (455kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 460kB 6.8MB/s
Collecting nbformat
Downloading https://files.pythonhosted.org/packages/da/27/9a654d2b6cc1eaa517d1c5a4405166c7f6d72f04f6e7eea41855fe808a46/nbformat-4.4.0-py2.py3-none-any.whl (155kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 163kB 6.4MB/s
Collecting traitlets>=4.2.1
Downloading https://files.pythonhosted.org/packages/ca/ab/872a23e29cec3cf2594af7e857f18b687ad21039c1f9b922fac5b9b142d5/traitlets-4.3.3-py2.py3-none-any.whl (75kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 81kB 5.1MB/s
Collecting prometheus-client
Downloading https://files.pythonhosted.org/packages/b3/23/41a5a24b502d35a4ad50a5bb7202a5e1d9a0364d0c12f56db3dbf7aca76d/prometheus_client-0.7.1.tar.gz
Collecting jsonschema>=3.0.1
Downloading https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 61kB 3.8MB/s
Collecting json5
Downloading https://files.pythonhosted.org/packages/30/44/062543d4a6718f99d82e5ecf9140dbdee8a03122f2c34fbd0b0609891707/json5-0.8.5-py2.py3-none-any.whl
Processing c:\users\vkarn\appdata\local\pip\cache\wheels\f2\aa\04\0edf07a1b8a5f5f1aed7580fffb69ce8972edc16a505916a77\markupsafe-1.1.1-cp38-cp38-win_amd64.whl
Collecting pywinpty>=0.5; os_name == "nt"
Downloading https://files.pythonhosted.org/packages/f8/9f/cb2a929f18cd2a3cf6242cf57b4d723ecf45b97653795475825d6af218a4/pywinpty-0.5.7-cp38-cp38-win_amd64.whl (1.3MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.3MB 6.4MB/s
Collecting pywin32>=1.0; sys_platform == "win32"
Downloading https://files.pythonhosted.org/packages/cf/06/0d55292927ada3f8516e437292d85e33d6f763dd2dcc6b95f62a91ad9740/pywin32-227-cp38-cp38-win_amd64.whl (9.1MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 9.1MB 298kB/s
Collecting ipython>=5.0.0
Downloading https://files.pythonhosted.org/packages/05/d7/77b7a1988c99227f52402f93fb0f7e88c97239960516f53907ebbc44149c/ipython-7.11.0-py3-none-any.whl (777kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 778kB 6.8MB/s
Collecting python-dateutil>=2.1
Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl
Collecting pandocfilters>=1.4.1
Downloading https://files.pythonhosted.org/packages/4c/ea/236e2584af67bb6df960832731a6e5325fd4441de001767da328c33368ce/pandocfilters-1.4.2.tar.gz
Collecting entrypoints>=0.2.2
Downloading https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Collecting bleach
Downloading https://files.pythonhosted.org/packages/ab/05/27e1466475e816d3001efb6e0a85a819be17411420494a1e602c36f8299d/bleach-3.1.0-py2.py3-none-any.whl (157kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 163kB 6.8MB/s
Collecting defusedxml
Downloading https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl
Collecting testpath
Downloading https://files.pythonhosted.org/packages/1b/9e/1a170feaa54f22aeb5a5d16c9015e82234275a3c8ab630b552493f9cb8a9/testpath-0.4.4-py2.py3-none-any.whl (163kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 174kB 6.8MB/s
Collecting mistune<2,>=0.8.1
Downloading https://files.pythonhosted.org/packages/09/ec/4b43dae793655b7d8a25f76119624350b4d65eb663459eb9603d7f1f0345/mistune-0.8.4-py2.py3-none-any.whl
Collecting pygments
Downloading https://files.pythonhosted.org/packages/be/39/32da3184734730c0e4d3fa3b2b5872104668ad6dc1b5a73d8e477e5fe967/Pygments-2.5.2-py2.py3-none-any.whl (896kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 901kB 3.3MB/s
Collecting six
Using cached https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl
Collecting decorator
Downloading https://files.pythonhosted.org/packages/8f/b7/f329cfdc75f3d28d12c65980e4469e2fa373f1953f5df6e370e84ea2e875/decorator-4.4.1-py2.py3-none-any.whl
Collecting pyrsistent>=0.14.0
Downloading https://files.pythonhosted.org/packages/6c/6f/c1a2e8da80a0029f6b618d7e20e1a6f2a61dd04e2e54225309c2cc4268f7/pyrsistent-0.15.6.tar.gz (107kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 112kB 2.2MB/s
Collecting attrs>=17.4.0
Downloading https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\users\vkarn.conda\envs\pf_4\lib\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (42.0.2.post20191203)
Collecting backcall
Downloading https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Downloading https://files.pythonhosted.org/packages/7f/1f/e145dd467dc9b0e6f1e64232c03119498dfec497e383f1e8be9f83eaa97e/prompt_toolkit-3.0.2-py3-none-any.whl (344kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 348kB 6.8MB/s
Collecting jedi>=0.10
Downloading https://files.pythonhosted.org/packages/e9/97/55e575a5b49e5c3df9eb3c116c61021d7badf556c816be13bbd7baf55234/jedi-0.15.2-py2.py3-none-any.whl (1.1MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.1MB 2.2MB/s
Collecting colorama; sys_platform == "win32"
Downloading https://files.pythonhosted.org/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl
Collecting pickleshare
Downloading https://files.pythonhosted.org/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl
Collecting webencodings
Downloading https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Collecting wcwidth
Downloading https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting parso>=0.5.2
Downloading https://files.pythonhosted.org/packages/9b/b0/90353a5ece0987279837835224dead0c424833a224195683e188d384e06b/parso-0.5.2-py2.py3-none-any.whl (99kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 102kB 6.4MB/s
Building wheels for collected packages: tornado, prometheus-client, pandocfilters, pyrsistent, backcall
Building wheel for tornado (setup.py) ... done
Created wheel for tornado: filename=tornado-6.0.3-cp38-cp38-win_amd64.whl size=415890 sha256=aaebf20975f68343a63e0fb2fe7674744a395f564f787fc7228e9e7e5cd5a7da
Stored in directory: C:\Users\vkarn\AppData\Local\pip\Cache\wheels\84\bf\40\2f6ef700f48401ca40e5e3dd7d0e3c0a90e064897b7fe5fc08
Building wheel for prometheus-client (setup.py) ... done
Created wheel for prometheus-client: filename=prometheus_client-0.7.1-cp38-none-any.whl size=41406 sha256=0c5ebf86878e9d9d88a8690eb23e7fc36dbab33fa44148712d9c114770338919
Stored in directory: C:\Users\vkarn\AppData\Local\pip\Cache\wheels\1c\54\34\fd47cd9b308826cc4292b54449c1899a30251ef3b506bc91ea
Building wheel for pandocfilters (setup.py) ... done
Created wheel for pandocfilters: filename=pandocfilters-1.4.2-cp38-none-any.whl size=7862 sha256=41c662ee6d3e89fdae3ac2800c022bec81ca9dd96abef85cb14ffd1b5f2563c0
Stored in directory: C:\Users\vkarn\AppData\Local\pip\Cache\wheels\39\01\56\f1b08a6275acc59e846fa4c1e1b65dbc1919f20157d9e66c20
Building wheel for pyrsistent (setup.py) ... done
Created wheel for pyrsistent: filename=pyrsistent-0.15.6-cp38-cp38-win_amd64.whl size=70572 sha256=d17939e2d21056a50a8a0bc4b233714e765125d204c438ff28852d8d06eeffb7
Stored in directory: C:\Users\vkarn\AppData\Local\pip\Cache\wheels\83\89\d3\1712b9c33c9b9c0911b188a86aeff2a9a05e113f986cf79d92
Building wheel for backcall (setup.py) ... done
Created wheel for backcall: filename=backcall-0.1.0-cp38-none-any.whl size=10417 sha256=f509eaf34222c2f92960a76526f02527cde3d606646c6283e1df59662d69d958
Stored in directory: C:\Users\vkarn\AppData\Local\pip\Cache\wheels\98\b0\dd\29e28ff615af3dda4c67cab719dd51357597eabff926976b45
Successfully built tornado prometheus-client pandocfilters pyrsistent backcall
Installing collected packages: ipython-genutils, Send2Trash, pyzmq, tornado, pywinpty, terminado, pywin32, six, decorator, traitlets, jupyter-core, python-dateutil, jupyter-client, backcall, wcwidth, prompt-toolkit, parso, jedi, colorama, pickleshare, pygments, ipython, ipykernel, MarkupSafe, jinja2, pandocfilters, entrypoints, webencodings, bleach, defusedxml, testpath, pyrsistent, attrs, jsonschema, nbformat, mistune, nbconvert, prometheus-client, notebook, json5, jupyterlab-server, jupyterlab
Successfully installed MarkupSafe-1.1.1 Send2Trash-1.5.0 attrs-19.3.0 backcall-0.1.0 bleach-3.1.0 colorama-0.4.3 decorator-4.4.1 defusedxml-0.6.0 entrypoints-0.3 ipykernel-5.1.3 ipython-7.11.0 ipython-genutils-0.2.0 jedi-0.15.2 jinja2-2.10.3 json5-0.8.5 jsonschema-3.2.0 jupyter-client-5.3.4 jupyter-core-4.6.1 jupyterlab-1.2.4 jupyterlab-server-1.0.6 mistune-0.8.4 nbconvert-5.6.1 nbformat-4.4.0 notebook-6.0.2 pandocfilters-1.4.2 parso-0.5.2 pickleshare-0.7.5 prometheus-client-0.7.1 prompt-toolkit-3.0.2 pygments-2.5.2 pyrsistent-0.15.6 python-dateutil-2.8.1 pywin32-227 pywinpty-0.5.7 pyzmq-18.1.1 six-1.13.0 terminado-0.8.3 testpath-0.4.4 tornado-6.0.3 traitlets-4.3.3 wcwidth-0.1.7 webencodings-0.5.1

jupyter lab
Traceback (most recent call last):
File "c:\users\vkarn.conda\envs\pf_4\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\vkarn.conda\envs\pf_4\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\vkarn.conda\envs\pf_4\Scripts\jupyter-lab.EXE__main__.py", line 7, in
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\jupyter_core\application.py", line 268, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, *kwargs)
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, *
kwargs)
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\notebook\notebookapp.py", line 1720, in initialize
self.init_webapp()
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\jupyterlab\labapp.py", line 404, in init_webapp
super().init_webapp(args, *kwargs)
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\notebook\notebookapp.py", line 1482, in init_webapp
self.http_server.listen(port, self.ip)
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\tornado\tcpserver.py", line 152, in listen
self.add_sockets(sockets)
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File "c:\users\vkarn.conda\envs\pf_4\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File "c:\users\vkarn.conda\envs\pf_4\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\vkarn.conda\envs\pf_4\lib\asyncio\events.py", line 501, in add_reader
raise NotImplementedError
NotImplementedError

It really worked for windows10 and pytho 3.8

import asyncio

if sys.platform == 'win32':
from .windows_events import *
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
__all__ += windows_events.__all__
else:
from .unix_events import * # pragma: no cover
__all__ += unix_events.__all__

I also still have this issue on Windows 10 with Python 3.8.1 and Tornado 6.0.3

# Name                    Version                   Build  Channel
anyconfig                 0.9.10                     py_0    conda-forge
appdirs                   1.4.3                      py_1    conda-forge
attrs                     19.3.0                     py_0    conda-forge
backcall                  0.1.0                      py_0    conda-forge
black                     19.10b0                  py38_0    conda-forge
bleach                    3.1.0                      py_0    conda-forge
ca-certificates           2019.11.28           hecc5488_0    conda-forge
certifi                   2019.11.28               py38_0    conda-forge
cffi                      1.13.2           py38hb32ad35_0    conda-forge
chardet                   3.0.4                 py38_1003    conda-forge
click                     7.0                        py_0    conda-forge
colorama                  0.4.3                      py_0    conda-forge
cryptography              2.8              py38hb32ad35_1    conda-forge
cycler                    0.10.0                     py_2    conda-forge
decorator                 4.4.1                      py_0    conda-forge
defusedxml                0.6.0                      py_0    conda-forge
entrypoints               0.3                   py38_1000    conda-forge
flake8                    3.7.9                    py38_0    conda-forge
freetype                  2.10.0               h563cfd7_1    conda-forge
gitdb2                    2.0.6                      py_0    conda-forge
gitpython                 3.0.5                      py_0    conda-forge
icu                       64.2                 he025d50_1    conda-forge
idna                      2.8                   py38_1000    conda-forge
importlib_metadata        1.3.0                    py38_0    conda-forge
intel-openmp              2019.4                      245
invoke                    1.4.0                      py_0    conda-forge
ipykernel                 5.1.3            py38h5ca1d4c_0    conda-forge
ipympl                    0.4.0                      py_0    conda-forge
ipython                   7.11.1           py38h5ca1d4c_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.5.1                      py_0    conda-forge
jedi                      0.15.2                   py38_0    conda-forge
jinja2                    2.10.3                     py_0    conda-forge
jmespath                  0.9.4                      py_0    conda-forge
jpeg                      9c                hfa6e2cd_1001    conda-forge
json5                     0.8.5                      py_0    conda-forge
jsonschema                3.2.0                    py38_0    conda-forge
jupyter_client            5.3.3                    py38_1    conda-forge
jupyter_contrib_core      0.3.3                      py_2    conda-forge
jupyter_contrib_nbextensions 0.5.1                    py38_0    conda-forge
jupyter_core              4.6.1                    py38_0    conda-forge
jupyter_highlight_selected_word 0.2.0                 py38_1000    conda-forge
jupyter_latex_envs        1.4.4                 py38_1000    conda-forge
jupyter_nbextensions_configurator 0.4.1                    py38_0    conda-forge
jupyterlab                1.2.4                      py_0    conda-forge
jupyterlab-git            0.9.0                      py_0    conda-forge
jupyterlab_server         1.0.6                      py_0    conda-forge
jupytext                  1.3.1                         0    conda-forge
kiwisolver                1.1.0            py38he980bc4_0    conda-forge
libblas                   3.8.0                    14_mkl    conda-forge
libcblas                  3.8.0                    14_mkl    conda-forge
libclang                  9.0.1           default_hf44288c_0    conda-forge
libiconv                  1.15              hfa6e2cd_1005    conda-forge
liblapack                 3.8.0                    14_mkl    conda-forge
libpng                    1.6.37               h7602738_0    conda-forge
libsodium                 1.0.17               h2fa13f4_0    conda-forge
libxml2                   2.9.10               h9ce36c8_0    conda-forge
libxslt                   1.1.33               heafd4d3_0    conda-forge
lxml                      4.4.2            py38heafd4d3_0    conda-forge
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markupsafe                1.1.1            py38hfa6e2cd_0    conda-forge
matplotlib                3.1.2                    py38_1    conda-forge
matplotlib-base           3.1.2            py38h2981e6d_1    conda-forge
mccabe                    0.6.1                      py_1    conda-forge
mistune                   0.8.4           py38hfa6e2cd_1000    conda-forge
mkl                       2019.4                      245
more-itertools            8.0.2                      py_0    conda-forge
msys2-conda-epoch         20160418                      1
mypy_extensions           0.4.3                    py38_0    conda-forge
nbconvert                 5.6.1                    py38_0    conda-forge
nbdime                    1.1.0                    py38_0    conda-forge
nbformat                  4.4.0                      py_1    conda-forge
nbresuse                  0.3.3                    pypi_0    pypi
nodejs                    13.0.0                        1    conda-forge
notebook                  6.0.1                    py38_0    conda-forge
numpy                     1.17.3           py38hc71023c_0    conda-forge
openssl                   1.1.1d               hfa6e2cd_0    conda-forge
pandas                    0.25.3           py38he350917_0    conda-forge
pandoc                    2.9.1.1                       0    conda-forge
pandocfilters             1.4.2                      py_1    conda-forge
parso                     0.5.2                      py_0    conda-forge
pathspec                  0.7.0                      py_0    conda-forge
pexpect                   4.7.0                    py38_0    conda-forge
pickleshare               0.7.5                 py38_1000    conda-forge
pip                       19.3.1                   py38_0    conda-forge
prometheus_client         0.7.1                      py_0    conda-forge
prompt_toolkit            3.0.2                      py_0    conda-forge
psutil                    5.6.7                    pypi_0    pypi
pycodestyle               2.5.0                      py_0    conda-forge
pycparser                 2.19                     py38_1    conda-forge
pyflakes                  2.1.1                      py_0    conda-forge
pygments                  2.5.2                      py_0    conda-forge
pyopenssl                 19.1.0                   py38_0    conda-forge
pyparsing                 2.4.6                      py_0    conda-forge
pyqt                      5.12.3           py38h6538335_1    conda-forge
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
pyrsistent                0.15.6           py38hfa6e2cd_0    conda-forge
pysocks                   1.7.1                    py38_0    conda-forge
python                    3.8.1                he1f5543_1    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python-dotenv             0.10.3                     py_0    conda-forge
pytz                      2019.3                     py_0    conda-forge
pywin32                   225              py38hfa6e2cd_0    conda-forge
pywinpty                  0.5.7                    py38_0    conda-forge
pyyaml                    5.3              py38hfa6e2cd_0    conda-forge
pyzmq                     18.1.1           py38h16f9016_0    conda-forge
qt                        5.12.5               h7ef1ec2_0    conda-forge
regex                     2020.1.7         py38hfa6e2cd_0    conda-forge
requests                  2.22.0                   py38_1    conda-forge
ruamel-yaml               0.16.5                   pypi_0    pypi
send2trash                1.5.0                      py_0    conda-forge
setuptools                44.0.0                   py38_0    conda-forge
six                       1.13.0                   py38_0    conda-forge
smmap2                    2.0.5                      py_0    conda-forge
sqlite                    3.30.1               hfa6e2cd_0    conda-forge
terminado                 0.8.3                    py38_0    conda-forge
testpath                  0.4.4                      py_0    conda-forge
toml                      0.10.0                     py_0    conda-forge
tornado                   6.0.3            py38hfa6e2cd_0    conda-forge
traitlets                 4.3.3                    py38_0    conda-forge
typed-ast                 1.4.0            py38hfa6e2cd_0    conda-forge
typing_extensions         3.7.4.1                  py38_0    conda-forge
urllib3                   1.25.7                   py38_0    conda-forge
vc                        14.1                 h0510ff6_4
vs2015_runtime            14.16.27012          hf0eaf9b_1
watermark                 2.0.2                      py_0    conda-forge
wcwidth                   0.1.8                      py_0    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.33.6                   py38_0    conda-forge
widgetsnbextension        3.5.1                    py38_0    conda-forge
win_inet_pton             1.1.0                    py38_0    conda-forge
wincertstore              0.2                   py38_1003    conda-forge
winpty                    0.4.3                         4    conda-forge
yaml                      0.2.2                hfa6e2cd_1    conda-forge
zeromq                    4.3.2                h6538335_2    conda-forge
zipp                      0.6.0                      py_0    conda-forge
zlib                      1.2.11            h2fa13f4_1006    conda-forge

Still have the same issue on Windows 10 with Python 3.8.1 and Pip 19.3.1

C:\Users\JC>pip install jupyterlab
Collecting jupyterlab
  Downloading https://files.pythonhosted.org/packages/35/9a/6e81535ed42ad01ec2a5e8f9e0419108f60fab36e48dc1168fa5e0576a81/jupyterlab-1.2.4-py2.py3-none-any.whl (6.4MB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 6.4MB 168kB/s
Collecting tornado!=6.0.0,!=6.0.1,!=6.0.2
  Downloading https://files.pythonhosted.org/packages/30/78/2d2823598496127b21423baffaa186b668f73cd91887fcef78b6eade136b/tornado-6.0.3.tar.gz (482kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 491kB 198kB/s
Collecting jupyterlab-server~=1.0.0
  Downloading https://files.pythonhosted.org/packages/78/98/5b87b9d38176bd98f23b58a8fb730e5124618d68571a011abbd38ad4a842/jupyterlab_server-1.0.6-py3-none-any.whl
Collecting jinja2>=2.10
  Downloading https://files.pythonhosted.org/packages/65/e0/eb35e762802015cab1ccee04e8a277b03f1d8e53da3ec3106882ec42558b/Jinja2-2.10.3-py2.py3-none-any.whl (125kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 133kB 327kB/s
Collecting notebook>=4.3.1
  Downloading https://files.pythonhosted.org/packages/f5/69/d2ffaf7efc20ce47469187e3a41e6e03e17b45de5a6559f4e7ab3eace5e1/notebook-6.0.2-py3-none-any.whl (9.7MB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 9.7MB 242kB/s
Collecting json5
  Downloading https://files.pythonhosted.org/packages/30/44/062543d4a6718f99d82e5ecf9140dbdee8a03122f2c34fbd0b0609891707/json5-0.8.5-py2.py3-none-any.whl
Collecting jsonschema>=3.0.1
  Downloading https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 61kB 280kB/s
Collecting MarkupSafe>=0.23
  Downloading https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
Collecting terminado>=0.8.1
  Downloading https://files.pythonhosted.org/packages/ff/96/1d9a2c23990aea8f8e0b5c3b6627d03196a73771a17a2d9860bbe9823ab6/terminado-0.8.3-py2.py3-none-any.whl
Collecting Send2Trash
  Downloading https://files.pythonhosted.org/packages/49/46/c3dc27481d1cc57b9385aff41c474ceb7714f7935b1247194adae45db714/Send2Trash-1.5.0-py3-none-any.whl
Collecting traitlets>=4.2.1
  Downloading https://files.pythonhosted.org/packages/ca/ab/872a23e29cec3cf2594af7e857f18b687ad21039c1f9b922fac5b9b142d5/traitlets-4.3.3-py2.py3-none-any.whl (75kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 81kB 158kB/s
Collecting nbconvert
  Downloading https://files.pythonhosted.org/packages/79/6c/05a569e9f703d18aacb89b7ad6075b404e8a4afde2c26b73ca77bb644b14/nbconvert-5.6.1-py2.py3-none-any.whl (455kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 460kB 111kB/s
Collecting ipython-genutils
  Downloading https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting jupyter-client>=5.3.4
  Downloading https://files.pythonhosted.org/packages/13/81/fe0eee1bcf949851a120254b1f530ae1e01bdde2d3ab9710c6ff81525061/jupyter_client-5.3.4-py2.py3-none-any.whl (92kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 92kB 178kB/s
Collecting jupyter-core>=4.6.0
  Downloading https://files.pythonhosted.org/packages/fb/82/86437f661875e30682e99d04c13ba6c216f86f5f6ca6ef212d3ee8b6ca11/jupyter_core-4.6.1-py2.py3-none-any.whl (82kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 92kB 125kB/s
Collecting prometheus-client
  Downloading https://files.pythonhosted.org/packages/b3/23/41a5a24b502d35a4ad50a5bb7202a5e1d9a0364d0c12f56db3dbf7aca76d/prometheus_client-0.7.1.tar.gz
Collecting nbformat
  Downloading https://files.pythonhosted.org/packages/5d/69/87745d03d1964649ef734238b32bf08eb843a6594cb03e8bc77edc8f33e9/nbformat-5.0.3-py3-none-any.whl (169kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 174kB 71kB/s
Collecting ipykernel
  Downloading https://files.pythonhosted.org/packages/e1/92/8fec943b5b81078399f969f00557804d884c96fcd0bc296e81a2ed4fd270/ipykernel-5.1.3-py3-none-any.whl (116kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 122kB 167kB/s
Collecting pyzmq>=17
  Downloading https://files.pythonhosted.org/packages/7d/f1/4b12dd1f7dcffb3875350f1a52b9a325d68539b9abfd7d4ee65bd20e7f5e/pyzmq-18.1.1-cp38-cp38-win_amd64.whl (1.1MB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.1MB 285kB/s
Collecting six>=1.11.0
  Downloading https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\users\jc\appdata\local\programs\python\python38\lib\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (44.0.0)
Collecting attrs>=17.4.0
  Downloading https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Collecting pyrsistent>=0.14.0
  Downloading https://files.pythonhosted.org/packages/90/aa/cdcf7ef88cc0f831b6f14c8c57318824c9de9913fe8de38e46a98c069a35/pyrsistent-0.15.7.tar.gz (107kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 112kB 328kB/s
Collecting pywinpty>=0.5; os_name == "nt"
  Downloading https://files.pythonhosted.org/packages/f8/9f/cb2a929f18cd2a3cf6242cf57b4d723ecf45b97653795475825d6af218a4/pywinpty-0.5.7-cp38-cp38-win_amd64.whl (1.3MB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.3MB 252kB/s
Collecting decorator
  Downloading https://files.pythonhosted.org/packages/8f/b7/f329cfdc75f3d28d12c65980e4469e2fa373f1953f5df6e370e84ea2e875/decorator-4.4.1-py2.py3-none-any.whl
Collecting testpath
  Downloading https://files.pythonhosted.org/packages/1b/9e/1a170feaa54f22aeb5a5d16c9015e82234275a3c8ab630b552493f9cb8a9/testpath-0.4.4-py2.py3-none-any.whl (163kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 174kB 344kB/s
Collecting defusedxml
  Downloading https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl
Collecting entrypoints>=0.2.2
  Downloading https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Collecting mistune<2,>=0.8.1
  Downloading https://files.pythonhosted.org/packages/09/ec/4b43dae793655b7d8a25f76119624350b4d65eb663459eb9603d7f1f0345/mistune-0.8.4-py2.py3-none-any.whl
Collecting pygments
  Downloading https://files.pythonhosted.org/packages/be/39/32da3184734730c0e4d3fa3b2b5872104668ad6dc1b5a73d8e477e5fe967/Pygments-2.5.2-py2.py3-none-any.whl (896kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 901kB 145kB/s
Collecting pandocfilters>=1.4.1
  Downloading https://files.pythonhosted.org/packages/4c/ea/236e2584af67bb6df960832731a6e5325fd4441de001767da328c33368ce/pandocfilters-1.4.2.tar.gz
Collecting bleach
  Downloading https://files.pythonhosted.org/packages/ab/05/27e1466475e816d3001efb6e0a85a819be17411420494a1e602c36f8299d/bleach-3.1.0-py2.py3-none-any.whl (157kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 163kB 327kB/s
Collecting pywin32>=1.0; sys_platform == "win32"
  Downloading https://files.pythonhosted.org/packages/cf/06/0d55292927ada3f8516e437292d85e33d6f763dd2dcc6b95f62a91ad9740/pywin32-227-cp38-cp38-win_amd64.whl (9.1MB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 9.1MB 167kB/s
Collecting python-dateutil>=2.1
  Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 235kB 242kB/s
Collecting ipython>=5.0.0
  Downloading https://files.pythonhosted.org/packages/1c/f3/c8be38ee117d02508bb8b9158eb41ca416f442a6e8e3b3159c2f2d14ed79/ipython-7.11.1-py3-none-any.whl (777kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 778kB 168kB/s
Collecting webencodings
  Downloading https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Collecting backcall
  Downloading https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Downloading https://files.pythonhosted.org/packages/7f/1f/e145dd467dc9b0e6f1e64232c03119498dfec497e383f1e8be9f83eaa97e/prompt_toolkit-3.0.2-py3-none-any.whl (344kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 348kB 91kB/s
Collecting pickleshare
  Downloading https://files.pythonhosted.org/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl
Collecting colorama; sys_platform == "win32"
  Downloading https://files.pythonhosted.org/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl
Collecting jedi>=0.10
  Downloading https://files.pythonhosted.org/packages/e9/97/55e575a5b49e5c3df9eb3c116c61021d7badf556c816be13bbd7baf55234/jedi-0.15.2-py2.py3-none-any.whl (1.1MB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.1MB 55kB/s
Collecting wcwidth
  Downloading https://files.pythonhosted.org/packages/58/b4/4850a0ccc6f567cc0ebe7060d20ffd4258b8210efadc259da62dc6ed9c65/wcwidth-0.1.8-py2.py3-none-any.whl
Collecting parso>=0.5.2
  Downloading https://files.pythonhosted.org/packages/9b/b0/90353a5ece0987279837835224dead0c424833a224195683e188d384e06b/parso-0.5.2-py2.py3-none-any.whl (99kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 102kB 111kB/s
Building wheels for collected packages: tornado, MarkupSafe, prometheus-client, pyrsistent, pandocfilters, backcall
  Building wheel for tornado (setup.py) ... done
  Created wheel for tornado: filename=tornado-6.0.3-cp38-cp38-win_amd64.whl size=415688 sha256=383804158982db654073a3cee76770958074185f16c7c2f8e2ba0735a66d124d
  Stored in directory: C:\Users\JC\AppData\Local\pip\Cache\wheels\84\bf\40\2f6ef700f48401ca40e5e3dd7d0e3c0a90e064897b7fe5fc08
  Building wheel for MarkupSafe (setup.py) ... done
  Created wheel for MarkupSafe: filename=MarkupSafe-1.1.1-cp38-cp38-win_amd64.whl size=19623 sha256=a6654b13ac237c4bd146a5d15a33dc23085c14408fef0ac8f5503e013c32bc20
  Stored in directory: C:\Users\JC\AppData\Local\pip\Cache\wheels\f2\aa\04\0edf07a1b8a5f5f1aed7580fffb69ce8972edc16a505916a77
  Building wheel for prometheus-client (setup.py) ... done
  Created wheel for prometheus-client: filename=prometheus_client-0.7.1-cp38-none-any.whl size=41406 sha256=6c3ed63d717b0e684d971cb776697008a9bbad188180a68c33838db4dbdca585
  Stored in directory: C:\Users\JC\AppData\Local\pip\Cache\wheels\1c\54\34\fd47cd9b308826cc4292b54449c1899a30251ef3b506bc91ea
  Building wheel for pyrsistent (setup.py) ... done
  Created wheel for pyrsistent: filename=pyrsistent-0.15.7-cp38-cp38-win_amd64.whl size=71090 sha256=83e2a7e08269d23c00ad4512f61856828dcaa6568d5d2e2508ebf306cda16cbd
  Stored in directory: C:\Users\JC\AppData\Local\pip\Cache\wheels\b5\78\ac\f26a78a989cd97f90981d96a560d7e1da5e1307284301d94e8
  Building wheel for pandocfilters (setup.py) ... done
  Created wheel for pandocfilters: filename=pandocfilters-1.4.2-cp38-none-any.whl size=7862 sha256=5b27a5b6856b6c85809bb803808d51956ed2291be9e25332e5aa5470ca76d8b0
  Stored in directory: C:\Users\JC\AppData\Local\pip\Cache\wheels\39\01\56\f1b08a6275acc59e846fa4c1e1b65dbc1919f20157d9e66c20
  Building wheel for backcall (setup.py) ... done
  Created wheel for backcall: filename=backcall-0.1.0-cp38-none-any.whl size=10417 sha256=f96f54849ee73b2477da9eae3af804f7fb712b50c4721a4b14ed97e47bd2fde9
  Stored in directory: C:\Users\JC\AppData\Local\pip\Cache\wheels\98\b0\dd\29e28ff615af3dda4c67cab719dd51357597eabff926976b45
Successfully built tornado MarkupSafe prometheus-client pyrsistent pandocfilters backcall
Installing collected packages: tornado, json5, MarkupSafe, jinja2, pywinpty, terminado, Send2Trash, ipython-genutils, decorator, six, traitlets, pywin32, jupyter-core, attrs, pyrsistent, jsonschema, nbformat, testpath, defusedxml, entrypoints, mistune, pygments, pandocfilters, webencodings, bleach, nbconvert, pyzmq, python-dateutil, jupyter-client, prometheus-client, backcall, wcwidth, prompt-toolkit, pickleshare, colorama, parso, jedi, ipython, ipykernel, notebook, jupyterlab-server, jupyterlab
Successfully installed MarkupSafe-1.1.1 Send2Trash-1.5.0 attrs-19.3.0 backcall-0.1.0 bleach-3.1.0 colorama-0.4.3 decorator-4.4.1 defusedxml-0.6.0 entrypoints-0.3 ipykernel-5.1.3 ipython-7.11.1 ipython-genutils-0.2.0 jedi-0.15.2 jinja2-2.10.3 json5-0.8.5 jsonschema-3.2.0 jupyter-client-5.3.4 jupyter-core-4.6.1 jupyterlab-1.2.4 jupyterlab-server-1.0.6 mistune-0.8.4 nbconvert-5.6.1 nbformat-5.0.3 notebook-6.0.2 pandocfilters-1.4.2 parso-0.5.2 pickleshare-0.7.5 prometheus-client-0.7.1 prompt-toolkit-3.0.2 pygments-2.5.2 pyrsistent-0.15.7 python-dateutil-2.8.1 pywin32-227 pywinpty-0.5.7 pyzmq-18.1.1 six-1.13.0 terminado-0.8.3 testpath-0.4.4 tornado-6.0.3 traitlets-4.3.3 wcwidth-0.1.8 webencodings-0.5.1

C:\Users\JC>jupyter lab
[I 20:47:45.357 LabApp] Writing notebook server cookie secret to C:\Users\JC\AppData\Roaming\jupyter\runtime\notebook_cookie_secret
Traceback (most recent call last):
  File "c:\users\jc\appdata\local\programs\python\python38\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\jc\appdata\local\programs\python\python38\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\JC\AppData\Local\Programs\Python\Python38\Scripts\jupyter-lab.EXE\__main__.py", line 7, in <module>
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\jupyter_core\application.py", line 268, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance
    app.initialize(argv)
  File "<c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\decorator.py:decorator-gen-7>", line 2, in initialize
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\notebook\notebookapp.py", line 1720, in initialize
    self.init_webapp()
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\jupyterlab\labapp.py", line 404, in init_webapp
    super().init_webapp(*args, **kwargs)
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\notebook\notebookapp.py", line 1482, in init_webapp
    self.http_server.listen(port, self.ip)
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\tornado\tcpserver.py", line 152, in listen
    self.add_sockets(sockets)
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
    self._handlers[sock.fileno()] = add_accept_handler(
  File "c:\users\jc\appdata\local\programs\python\python38\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
    io_loop.add_handler(sock, accept_handler, IOLoop.READ)
  File "c:\users\jc\appdata\local\programs\python\python38\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\jc\appdata\local\programs\python\python38\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError

workaround from https://stackoverflow.com/a/58430041:

add this to tornado/platform/asyncio.py after the main imports:

import sys

if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

Works perfectly for me on Python 3.8.1

The problem that I have found with the workaround is when I create a new virtual environment it pulls down the non patched code and becomes broken again. Would be nice if jupyter notebook 6.0.3 would drop soon so this problem would just go away. Since the issue becomes recreated every time I make a new venv I've just had to not use 3.8 for the time being, which is kind of a bummer.

Thanks to all who are working on this project I really appreciate it.

I think we can expect a Notebook 6.0.3 drop in the next day or two. I believe it was delayed by a conda-forge issue with a required project.

It seems the notebook 6.0.3 dropped last night.
after conda update -c conda-forge notebook, I can now launch jupyter notebook successfully

Unfortunately, I am getting the NotImplementedError when attempting to launch jupyter qtconsole.

If I try to update qtconsole from conda-forge, I get the message "All requested packages already installed"

@thomco - sorry for the frustration.

qtconsole is maintained in a separate repo (https://github.com/jupyter/qtconsole) and will need a patch similar to those made for notebook (#5047) and ipykernel (https://github.com/ipython/ipykernel/pull/456).

Looks like the following issue may be tracking it: https://github.com/jupyter/qtconsole/issues/400

Hi @minrk. Now that tornado's PR2815 has been merged and is in 6.1.0 when do you expect to undo #5047? I see the workaround was put in a few places (including serverapp.py and notebook.py).

Hi @omasoud - this is being worked on by @bollwyvl in https://github.com/jupyter/notebook/pull/5907 - thanks Nick!

Was this page helpful?
0 / 5 - 0 ratings