Bug 2354074

Summary: widgets don't work in JupyerLab & Notebook (only in NbClassic)
Product: [Fedora] Fedora Reporter: Cristian Ciupitu <cristian.ciupitu>
Component: python-ipywidgetsAssignee: Lumír Balhar <lbalhar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: lbalhar, python-packagers-sig, romain.geissler
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-ipywidgets-8.1.5-3.fc41 python-ipywidgets-8.1.5-3.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-30 00:16:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2354249    
Bug Blocks:    
Attachments:
Description Flags
rpm -q -a (the list of all installed packages) none

Description Cristian Ciupitu 2025-03-21 15:21:09 UTC
The IntSlider widget works in NbClassic, but not in JupyerLab & Notebook.

Same goes for other widgets.

Reproducible: Always

Steps to Reproduce:
1. Start jupyter, e.g.:
```sh
jupyter notebook --notebook-dir=/tmp/N --NotebookNotary.db_file=':memory:' --PasswordIdentityProvider.hashed_password='sha1:320c57170183:31d7aff2b7f1990b1869b82e83934e5185cebf97' --ServerApp.allow_remote_access=True --ip='127.0.0.1' --no-browser
```
2. Open http://127.0.0.1:8888/ in Firefox and login with password `123456`

3. Create and run a notebook with this code:
```python
import ipywidgets as widgets
from IPython.display import display
w = widgets.IntSlider()
display(w)
```
Actual Results:  
Just this plain text:

> IntSlider(value=0)

Expected Results:  
An integer slider widget like described in the [documentation][1].

[1]: https://ipywidgets.readthedocs.io/en/stable/examples/Widget%20Basics.html#display

I think that the jupyterlab_widgets dependency is missing.

The latest Anaconda Python distribution works fine.

Comment 1 Cristian Ciupitu 2025-03-21 15:22:04 UTC
Created attachment 2081257 [details]
rpm -q -a  (the list of all installed packages)

Comment 2 Cristian Ciupitu 2025-03-21 15:29:49 UTC
`jupyter labextension list` prints:

    `sys_prefix` level settings are read-only, using `user` level for migration to `lockedExtensions`
    JupyterLab v4.3.6
    /usr/share/jupyter/labextensions
            jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
            @jupyter-notebook/lab-extension v7.3.2 enabled OK


While `…/miniconda3/bin/jupyter labextension list` prints:

    `sys_prefix` level settings are read-only, using `user` level for migration to `lockedExtensions`
    JupyterLab v4.3.6
    /opt/anaconda/miniconda3/share/jupyter/labextensions
            jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
            bqplot v0.5.44 enabled  X (python, bqplot)
            ipydatagrid v1.4.0 enabled OK
            @jupyter-widgets/jupyterlab-manager v5.0.13 enabled OK (python, jupyterlab_widgets)
            @pyviz/jupyterlab_pyviz v3.0.4 enabled OK
            @jupyter-notebook/lab-extension v7.3.3 enabled OK
            @finos/perspective-jupyterlab v3.4.3 enabled OK (python, perspective-python)


       The following extensions may be outdated or specify dependencies that are incompatible with the current version of jupyterlab:
            bqplot

       If you are a user, check if an update is available for these packages.
       If you are a developer, re-run with `--verbose` flag for more details.

Comment 3 Lumír Balhar 2025-03-22 09:54:16 UTC
You are right. Thank you for the report. I've prepared a new package that should bring the missing functionalities to Jupyter lab.

Comment 4 Lumír Balhar 2025-03-22 09:55:56 UTC
The new package will now undergo a review but if you don't want to wait or if you want to help with testing, you can install it from https://copr.fedorainfracloud.org/coprs/lbalhar/python-jupyterlab-widgets/

Comment 5 Cristian Ciupitu 2025-03-22 12:33:27 UTC
I've installed it to do a quick test and it seems to be working.

Comment 6 Fedora Update System 2025-03-24 15:52:19 UTC
FEDORA-2025-9289b268c8 (python-jupyterlab-widgets-3.0.13-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9289b268c8

Comment 7 Fedora Update System 2025-03-24 15:52:54 UTC
FEDORA-2025-0d579aff37 (python-jupyterlab-widgets-3.0.13-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-0d579aff37

Comment 8 Lumír Balhar 2025-03-24 15:54:04 UTC
New packages for F42 and F41 will soon be ready for testing. Karma will make them land sooner.

Comment 9 Fedora Update System 2025-03-25 02:00:25 UTC
FEDORA-2025-0d579aff37 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-0d579aff37 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-0d579aff37

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2025-03-25 04:00:57 UTC
FEDORA-2025-9289b268c8 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9289b268c8 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9289b268c8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Cristian Ciupitu 2025-03-25 23:10:15 UTC
Shouldn't python3-ipywidgets updated as well to depend on python-jupyterlab-widgets ?

Comment 13 Lumír Balhar 2025-03-26 11:35:49 UTC
If you want to speed things up, you can give positive karma to these two updates:

https://bodhi.fedoraproject.org/updates/FEDORA-2025-9289b268c8
https://bodhi.fedoraproject.org/updates/FEDORA-2025-0d579aff37

Comment 14 Fedora Update System 2025-03-30 00:16:19 UTC
FEDORA-2025-0d579aff37 (python-jupyterlab-widgets-3.0.13-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2025-03-31 11:47:24 UTC
FEDORA-2025-da6591d98c (python-ipywidgets-8.1.5-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-da6591d98c

Comment 16 Fedora Update System 2025-04-01 03:25:37 UTC
FEDORA-2025-da6591d98c has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-da6591d98c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-da6591d98c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2025-04-02 01:55:36 UTC
FEDORA-2025-9289b268c8 (python-jupyterlab-widgets-3.0.13-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2025-04-02 17:47:01 UTC
FEDORA-2025-d679d0fec3 (python-ipywidgets-8.1.5-3.fc41 and python-widgetsnbextension-4.0.12-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d679d0fec3

Comment 19 Fedora Update System 2025-04-03 02:20:56 UTC
FEDORA-2025-d679d0fec3 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d679d0fec3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d679d0fec3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2025-04-11 01:26:23 UTC
FEDORA-2025-d679d0fec3 (python-ipywidgets-8.1.5-3.fc41 and python-widgetsnbextension-4.0.12-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2025-04-11 18:25:18 UTC
FEDORA-2025-da6591d98c (python-ipywidgets-8.1.5-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.