# Jupyterhub with Notebook7: no logout button

**URL:** <https://discourse.jupyter.org/t/jupyterhub-with-notebook7-no-logout-button/21431>\
**Category:** JupyterHub\
**Created:** [September 14, 2023, 12:38pm UTC](https://discourse.jupyter.org/t/jupyterhub-with-notebook7-no-logout-button/21431 "2023-09-14T12:38:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MHellmund](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mhellmund/32/11030_2.png) [@MHellmund](https://discourse.jupyter.org/u/MHellmund)\
**Post date:** [September 14, 2023, 12:38pm UTC](https://discourse.jupyter.org/t/jupyterhub-with-notebook7-no-logout-button/21431/1 "2023-09-14T12:38:19Z")

</div>

I’m running jupyterhub with the notebook interface for a course. After updating to notebook v7 and  
setting `c.Spawner.default_url = "/tree"`, the new notebook interface works fine except:  
The Logout button is missing.

Any ideas? For the time being I am back to `c.Spawner.default_url="/nbclassic"`

---

<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 14, 2023, 3:06pm UTC](https://discourse.jupyter.org/t/jupyterhub-with-notebook7-no-logout-button/21431/2 "2023-09-14T15:06:20Z")

</div>

Can you check if the metadata listed here:

> <https://github.com/jupyter/notebook/blob/14fce8c9e4b06175903f88c9bd876215684235e9/notebook/app.py#L315-L325>

get added to page config?

---

<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 14, 2023, 3:06pm UTC](https://discourse.jupyter.org/t/jupyterhub-with-notebook7-no-logout-button/21431/3 "2023-09-14T15:06:59Z")

</div>

(page config gets passed to the browser in HTML source code)

---

<div class="post-metadata">

**Author:** ![MHellmund](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mhellmund/32/11030_2.png) [@MHellmund](https://discourse.jupyter.org/u/MHellmund)\
**Post date:** [September 14, 2023, 3:41pm UTC](https://discourse.jupyter.org/t/jupyterhub-with-notebook7-no-logout-button/21431/4 "2023-09-14T15:41:36Z")

</div>

No.

The only config dictionary I see looking at the HTML source in the browser is

```auto
  <script id="jupyter-config-data" type="application/json">
    {"allow_hidden_files": false,
     "appName": "Jupyter Notebook", 
     "appNamespace": "notebook",
     "appSettingsDir": "/opt/envj/share/jupyter/lab/settings", 
     "appUrl": "/lab", 
     "appVersion": "7.0.3",
     "baseUrl": "/user/meik/",
... many more entries...
}
  </script>

```

but there is no entry starting with `hub...` ore `shareUrl`.

---

<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 14, 2023, 3:51pm UTC](https://discourse.jupyter.org/t/jupyterhub-with-notebook7-no-logout-button/21431/5 "2023-09-14T15:51:22Z")

</div>

Is your jupyter hub using jupyter-server 2.x or 1.x?

---

<div class="post-metadata">

**Author:** ![MHellmund](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mhellmund/32/11030_2.png) [@MHellmund](https://discourse.jupyter.org/u/MHellmund)\
**Post date:** [September 14, 2023, 3:55pm UTC](https://discourse.jupyter.org/t/jupyterhub-with-notebook7-no-logout-button/21431/6 "2023-09-14T15:55:19Z")

</div>

`pip freeze` says

```auto
jupyter_server==2.7.3
jupyterhub==4.0.2
notebook==7.0.3

```
