I tried this on the latest beta (Sage 9.5.beta7) with few more tickets merged:
1) start sage-sh, i.e. ./sage -sh
2) (sage-sh) dima@hilbert:sage-dev$ pip install jupyterlab
3) (sage-sh) dima@hilbert:sage-dev$ pip freeze | grep jupyterlab
jupyter-server==1.12.1
jupyterlab==3.2.4
jupyterlab-pygments @
file:///mnt/opt/Sage/sage-dev/local/var/lib/sage/venv-python3.9/var/tmp/sage/build/jupyterlab_pygments-0.1.2/inst/mnt/opt/Sage/sage-dev/local/var/lib/sage/venv-python3.9/var/lib/sage/wheels/jupyterlab_pygments-0.1.2-py2.py3-none-any.whl
jupyterlab-server==2.8.2
4) quit the subshell
5) ./sage -n jupyterlab # (works)
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sage-support...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-support/6031579a-42a2-4cf0-b798-f6da8d35acdfn%40googlegroups.com.