I am unable to open JUPYTER Notebook

I am struck in this error and fed up I tried to reinstall and other method but none work,Please help how to open Jupyter notebook

Traceback (most recent call last):
File “C:\Users\Admin\anaconda3\Lib\site-packages\notebook\traittypes.py”, line 235, in _resolve_classes
klass = self._resolve_string(klass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 2009, in _resolve_string
return import_item(string)
^^^^^^^^^^^^^^^^^^^
File “C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages\traitlets\utils\importstring.py”, line 30, in import_item
module = import(package, fromlist=[obj])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named ‘jupyter_server.contents’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Users\Admin\anaconda3\Scripts\jupyter-notebook-script.py”, line 10, in
sys.exit(main())
^^^^^^
File “C:\Users\Admin\anaconda3\Lib\site-packages\jupyter_core\application.py”, line 277, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages\traitlets\config\application.py”, line 1044, in launch_instance
app = cls.instance(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages\traitlets\config\configurable.py”, line 555, in instance
inst = cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1295, in new
inst.setup_instance(*args, **kwargs)
File “C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1338, in setup_instance
super(HasTraits, self).setup_instance(*args, **kwargs)
File “C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1314, in setup_instance
init(self)
File “C:\Users\Admin\anaconda3\Lib\site-packages\notebook\traittypes.py”, line 226, in instance_init
self._resolve_classes()
File “C:\Users\Admin\anaconda3\Lib\site-packages\notebook\traittypes.py”, line 238, in _resolve_classes
warn(f"{klass} is not importable. Is it installed?", ImportWarning)
TypeError: warn() missing 1 required keyword-only argument: ‘stacklevel’

I’m also getting the same error.

I’m also getting same error

I was getting the same error, but this GitHub page worked out for me: ModuleNotFoundError: No module named 'jupyter_server.contents' switching to Python kernel · Issue #24436 · microsoft/azuredatastudio · GitHub

2 Likes

The solution worked for me as well as noted in this link to use Anaconda Prompt to uninstall trailets 5.10.0 and install 5.9.0. Thanks Raphael!

I’m having the same issue. What do i do?