# Issue in jupyter notebook

**URL:** <https://discourse.jupyter.org/t/issue-in-jupyter-notebook/21576>\
**Category:** extensions\
**Created:** [September 23, 2023, 12:55am UTC](https://discourse.jupyter.org/t/issue-in-jupyter-notebook/21576 "2023-09-23T00:55:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahmood\_Shehob](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mahmood_shehob/32/11108_2.png) [@Mahmood\_Shehob](https://discourse.jupyter.org/u/Mahmood_Shehob)\
**Post date:** [September 23, 2023, 12:55am UTC](https://discourse.jupyter.org/t/issue-in-jupyter-notebook/21576/1 "2023-09-23T00:55:35Z")

</div>

hi dear

greetings

i just started in python for graduate project after create new environment in anaconda and run below commands in anaconda prompt

///////////////////////////////////////////////////////////////////

conda update conda -y

conda upgrade conda -y

conda remove --force jupyter -y

conda remove --force jupyterlab -y

conda remove --force jupyter notebook -y

conda remove --force jupyter\_server -y

* * *

## install jupyter

conda install jupyter -y

conda install jupyterlab -y

conda install jupyter notebook -y

conda install jupyter\_server -y  
//////////////////////////////////////////////////////////////////

i got this errors  
//////////////////////////////////////////////////////////////////

(base) PS C:\Users\MAHMO\> jupyter notebook  
Traceback (most recent call last):  
File “C:\Users\MAHMO\anaconda3\Lib\site-packages\notebook\traittypes.py”, line 235, in \_resolve\_classes  
klass = self.\_resolve\_string(klass)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “C:\Users\MAHMO\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 2009, in \_resolve\_string  
return import\_item(string)  
^^^^^^^^^^^^^^^^^^^  
File “C:\Users\MAHMO\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\MAHMO\anaconda3\Scripts\jupyter-notebook-script.py”, line 10, in   
sys.exit(main())  
^^^^^^  
File “C:\Users\MAHMO\AppData\Roaming\Python\Python311\site-packages\jupyter\_core\application.py”, line 285, in launch\_instance  
return super().launch\_instance(argv=argv, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “C:\Users\MAHMO\AppData\Roaming\Python\Python311\site-packages\traitlets\config\application.py”, line 1044, in launch\_instance  
app = cls.instance(\*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^  
File “C:\Users\MAHMO\AppData\Roaming\Python\Python311\site-packages\traitlets\config\configurable.py”, line 555, in instance  
inst = cls(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^  
File “C:\Users\MAHMO\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1295, in **new**  
inst.setup\_instance(\*args, \*\*kwargs)  
File “C:\Users\MAHMO\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1338, in setup\_instance  
super(HasTraits, self).setup\_instance(\*args, \*\*kwargs)  
File “C:\Users\MAHMO\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1314, in setup\_instance  
init(self)  
File “C:\Users\MAHMO\anaconda3\Lib\site-packages\notebook\traittypes.py”, line 226, in instance\_init  
self.\_resolve\_classes()  
File “C:\Users\MAHMO\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’

//////////////////////////////////////////////////////////////////

for python and jupyter version

(base) PS C:\Users\MAHMO\> python --version  
Python 3.11.5  
(base) PS C:\Users\MAHMO\> jupyter --version  
Selected Jupyter core packages…  
IPython : 8.15.0  
ipykernel : 6.25.2  
ipywidgets : 8.0.4  
jupyter\_client : 8.3.1  
jupyter\_core : 5.3.1  
jupyter\_server : 2.7.3  
jupyterlab : 3.6.3  
nbclient : 0.8.0  
nbconvert : 7.8.0  
nbformat : 5.9.2  
notebook : 6.5.4  
qtconsole : 5.4.2  
traitlets : 5.10.0

Please help

BR

---

<div class="post-metadata">

**Author:** ![krassowski](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/krassowski/32/1685_2.png) [@krassowski](https://discourse.jupyter.org/u/krassowski)\
**Post date:** [September 23, 2023, 9:53am UTC](https://discourse.jupyter.org/t/issue-in-jupyter-notebook/21576/2 "2023-09-23T09:53:54Z")

</div>

I would recommend two things:  
a) installing all packages together. currently you are installing a metapackage jupyter ([Jupyter :: Anaconda.org](https://anaconda.org/anaconda/jupyter)) which is likely not needed; you should not need to install jupyter-server manually  
b) trying conda-forge if you want the latest versions as this is where Jupyter maintainers upload packages

So in a fresh environment, `conda install -c conda-forge jupyterlab notebook`. If you want specific versions you could pin them, for example `conda install -c conda-forge jupyterlab=4.0.6 notebook=7.0.4`
