jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook
https://ipywidgets.readthedocs.io
BSD 3-Clause "New" or "Revised" License
3.1k stars 946 forks source link

Cannot always edit bounds in readout of `FloatRangeSlider` #3889

Open nvaytet opened 4 months ago

nvaytet commented 4 months ago

Description

When using a FloatRangeSlider where the min value is negative, I can edit the bounds in the slider readout and update the positions of the handles on the slider, as long as I don't enter a negative value for the lower bound. After I enter a negative bound, trying to edit the values in the readout has no effect.

I think something similar happens with the IntRangeSlider.

Reproduce

Create a FloatRangeSlider with e.g.

ipw.FloatRangeSlider(min=-22, max=66., layout={'width': '600px'})

Context

Nothing found in the browser console :-(

If using JupyterLab

Installed Labextensions
JupyterLab v4.0.5
/home/nvaytet/software/mambaforge/share/jupyter/labextensions
        jupyterlab-datawidgets v7.1.2 enabled OK
        jupyterlab-plotly v5.17.0 enabled  X
        jupyterlab_pygments v0.2.2 enabled  X (python, jupyterlab_pygments)
        jupyter-threejs v2.4.1 enabled OK (python, pythreejs)
        jupyter-matplotlib v0.11.3 enabled OK
        @jupyter-widgets/jupyterlab-manager v5.0.10 enabled OK (python, jupyterlab_widgets)

   The following extensions are outdated:
        jupyterlab-plotly
        jupyterlab_pygments

   Consider checking if an update is available for these packages.

Other labextensions (built into JupyterLab)
   app dir: /home/nvaytet/software/mambaforge/share/jupyter/lab