Jupyter notebook command not workin

I am trying to open documentation as per chapter#1 3rd lecture: Running the Jupyter Notebooks

i am getting following error message. I tried lot of troubleshooting but unable to fix the issue.

(mflix_venv) PS C:\Education\MongoDB\M220P\mflix-python\notebooks> jupyter notebook
Traceback (most recent call last):
File “C:\Program Files\Anaconda3\lib\runpy.py”, line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File “C:\Program Files\Anaconda3\lib\runpy.py”, line 87, in run_code
exec(code, run_globals)
File "C:\Education\MongoDB\M220P\mflix-python\mflix_venv\Scripts\jupyter-notebook.EXE_main
.py", line 9, in
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\jupyter_core\application.py”, line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\traitlets\config\application.py”, line 663, in launch_instance
app.initialize(argv)
File “<c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\decorator.py:decorator-gen-7>”, line 2, in initialize
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\traitlets\config\application.py”, line 87, in catch_config_error
return method(app, *args, **kwargs)
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\notebook\notebookapp.py”, line 1679, in initialize
self.init_webapp()
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\notebook\notebookapp.py”, line 1442, in init_webapp
self.http_server.listen(port, self.ip)
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\tornado\tcpserver.py”, line 152, in listen
self.add_sockets(sockets)
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\tornado\tcpserver.py”, line 165, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\lib\site-packages\tornado\netutil.py”, line 279, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File “c:\education\mongodb\m220p\mflix-python\mflix_venv\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\Anaconda3\lib\asyncio\events.py”, line 501, in add_reader
raise NotImplementedError
NotImplementedError

I am able to run this just fine. Can you try upgrading notebook?

    pip install notebook --upgrade

Source link

Kanika

1 Like

yes i tried did not work, i just installed it at diff location and copied the notebook folder there and it worked…

1 Like