# Server-extension example fails because of jupyter-server version

**URL:** <https://discourse.jupyter.org/t/server-extension-example-fails-because-of-jupyter-server-version/19161>\
**Category:** JupyterLab\
**Created:** [April 27, 2023, 7:31pm UTC](https://discourse.jupyter.org/t/server-extension-example-fails-because-of-jupyter-server-version/19161 "2023-04-27T19:31:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gero-hero](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/gero-hero/32/9763_2.png) [@gero-hero](https://discourse.jupyter.org/u/gero-hero)\
**Post date:** [April 27, 2023, 7:31pm UTC](https://discourse.jupyter.org/t/server-extension-example-fails-because-of-jupyter-server-version/19161/1 "2023-04-27T19:31:18Z")

</div>

Hello,  
I am trying to understand the [server-extension](https://github.com/jupyterlab/extension-examples/tree/master/server-extension) example.

I can’t run the installation steps at the very end of the README.md successfully:

```auto
pip install -e .
jupyter labextension develop . --overwrite
jupyter server extension enable jlab_ext_example
jlpm run build

```

The first step (pip install -e .) uninstalls an existing jupyter\_server-2.5.0 and installs jupyter-server-1.24.0. (Why??)

The third step (jupyter server extension enable jlab\_ext\_example) fails with this output:

```auto
...
File "/home/user/miniconda3/envs/jl1/lib/python3.11/site-packages/jupyter_server_terminals/ __init__.py", line 9, in <module>
    raise RuntimeError("Jupyter Server Terminals requires Jupyter Server 2.0+")
RuntimeError: Jupyter Server Terminals requires Jupyter Server 2.0+
...

```

Only when I remove jupyter-server-1.24.0 and install jupyter\_server-2.5.0 again, and then repeat steps 2-4, can I run the example.

Where is the dependency on jupyter-server-1.24.0 introduced, and how can I experiment with the example without fixing the jupyter-server after each pip install?

Thank you  
Gero
