Problem upgrading jupyterlab

88 views
Skip to first unread message

Rogerio

unread,
Dec 4, 2021, 12:26:15 AM12/4/21
to sage-support
When I was using sagemath 9.3 I upgraded the jupyterlab version to 3.x and it was working fine. When I changed to sagemath 9.4, the  jupyterlab version was downgraded to 2.2.10. Then I tried to upgrade with

`sage -pip install --upgrade jupyterlab`

At the end it displayed

Installing collected packages: jupyterlab-server, jupyterlab
  Attempting uninstall: jupyterlab-server
    Found existing installation: jupyterlab-server 1.2.0
    Uninstalling jupyterlab-server-1.2.0:
      Successfully uninstalled jupyterlab-server-1.2.0
  Attempting uninstall: jupyterlab
    Found existing installation: jupyterlab 2.2.10
    Uninstalling jupyterlab-2.2.10:
      Successfully uninstalled jupyterlab-2.2.10
Successfully installed jupyterlab-3.2.4 jupyterlab-server-2.8.2


However, when I type

`sage -n jupyterlab`

It shows

Jupyterlab is not installed (at least not in this Sage installation).
You can install it by running
  sage -i jupyterlab_widgets
which includes support for interacts and the ability to download and
install other Jupyterlab extensions. For a minimal installation, run
  sage -i jupyterlab



Trying again `sage -i jupyterlab_widgets` I found in the middle of the log message


[jupyterlab] Installing collected packages: jupyterlab-server, jupyterlab
[jupyterlab]   Attempting uninstall: jupyterlab-server
[jupyterlab]     Found existing installation: jupyterlab-server 2.8.2
[jupyterlab]     Uninstalling jupyterlab-server-2.8.2:
[jupyterlab]       Successfully uninstalled jupyterlab-server-2.8.2
[jupyterlab]   Attempting uninstall: jupyterlab
[jupyterlab]     Found existing installation: jupyterlab 3.2.4
[jupyterlab]     Uninstalling jupyterlab-3.2.4:
[jupyterlab]       Successfully uninstalled jupyterlab-3.2.4
[jupyterlab] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.



And the jupyterlab version is again back to 2.2.10.

How to upgrade it?

Dima Pasechnik

unread,
Dec 4, 2021, 6:12:30 AM12/4/21
to sage-support
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.

Matthias Koeppe

unread,
Dec 4, 2021, 2:15:36 PM12/4/21
to sage-support
Also, help is needed on ticket https://trac.sagemath.org/ticket/32069 to update our jupyterlab packages.

Rogerio

unread,
Dec 4, 2021, 6:55:12 PM12/4/21
to sage-support
The problem still remains...
I think i'm going to wait the release of 9.5
Reply all
Reply to author
Forward
0 new messages