# How to upgrade JupyterLab in TLJH?

**URL:** <https://discourse.jupyter.org/t/how-to-upgrade-jupyterlab-in-tljh/20137>\
**Category:** JupyterHub\
**Created:** [June 28, 2023, 8:15am UTC](https://discourse.jupyter.org/t/how-to-upgrade-jupyterlab-in-tljh/20137 "2023-06-28T08:15:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![immick](https://avatars.discourse-cdn.com/v4/letter/i/dfb087/32.png) [@immick](https://discourse.jupyter.org/u/immick)\
**Post date:** [June 28, 2023, 8:15am UTC](https://discourse.jupyter.org/t/how-to-upgrade-jupyterlab-in-tljh/20137/1 "2023-06-28T08:15:22Z")

</div>

Hello!

Is there a way to update JupyterLab to the recent version? I’ve tried to use:  
`sudo -E pip install -U jupyterlab`

But got no effect in result.

Thank you!

---

<div class="post-metadata">

**Author:** ![reinob](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@reinob](https://discourse.jupyter.org/u/reinob)\
**Post date:** [June 29, 2023, 6:21pm UTC](https://discourse.jupyter.org/t/how-to-upgrade-jupyterlab-in-tljh/20137/2 "2023-06-29T18:21:26Z")

</div>

Maybe you already have the latest version?  
According to pip, I have jupyterlab version 4.0.2  
(this is with TLJH).

---

<div class="post-metadata">

**Author:** ![immick](https://avatars.discourse-cdn.com/v4/letter/i/dfb087/32.png) [@immick](https://discourse.jupyter.org/u/immick)\
**Post date:** [June 29, 2023, 6:47pm UTC](https://discourse.jupyter.org/t/how-to-upgrade-jupyterlab-in-tljh/20137/3 "2023-06-29T18:47:45Z")

</div>

That’s strange as I’ve just installed JH via TLJH. My JupyterHub 1.5.1 20230628081709 and JupyterLab is 3.6.5 but it’s according from the web: Help - About JupyterLab.

---

<div class="post-metadata">

**Author:** ![consideRatio](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/consideratio/32/1033_2.png) [@consideRatio](https://discourse.jupyter.org/u/consideRatio)\
**Post date:** [June 30, 2023, 10:49am UTC](https://discourse.jupyter.org/t/how-to-upgrade-jupyterlab-in-tljh/20137/4 "2023-06-30T10:49:13Z")

</div>

There are three separate python environmenta in a tljh installation!

1. System
2. Hub - Where jupyterhub runs
3. User - Where user stuff runs, like jupyterlab

You need to upgrade it in the user environment specifically. I recall the tljh documentation clarifies how to so this somewhere.

/ From mobile

---

<div class="post-metadata">

**Author:** ![reinob](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@reinob](https://discourse.jupyter.org/u/reinob)\
**Post date:** [July 3, 2023, 6:53am UTC](https://discourse.jupyter.org/t/how-to-upgrade-jupyterlab-in-tljh/20137/5 "2023-07-03T06:53:17Z")

</div>

Yup, it is (to me) a bit messy, because you have to be careful which user you are and which python environment (if any) is currently active.

In any case, if I go to Help → About Jupyterlab I see version 4.0.2, which corresponds to what “pip freeze” shows (with the user environment, i.e. after sourcing /opt/tljh/user/bin/activate, which I do in my .bashrc so I never miss it).

I think I just updated by doing “pip install -U jupyterlab”.
