This problem is related to the
tornado server which jupyter notebook uses.
To fix this problem, we need to edit the file
tornado/platform/asyncio.py, This file is under your virtualenv directory, I have an env3 virtual environment, so my tornado file is
C:\Users\Developer\Envs\env3\Lib\site-packages\tornado\platform\asyncio.py, by adding:
import sys if sys.platform == 'win32': asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
After all the main imports.