jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook

Home Page:https://ipywidgets.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot always edit bounds in readout of `FloatRangeSlider`

nvaytet opened this issue · comments

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'})
  • Change the upper bound (edit in the slider readout) to 64: works
  • Change the upper bound to 34: works
  • Change the lower bound to 5: works
  • Change the lower bound to -5: works
  • Change the upper bound to anything else: nothing happens, value stays at 34
  • Change the lower bound to anything else: nothing happens, value stays at -5

Context

  • ipywidgets version 8,1,2
  • Operating System and version: Ubuntu 22.04
  • Browser and version: Chrome Version 119.0.6045.159 (Official Build) (64-bit)

Nothing found in the browser console :-(

If using JupyterLab

  • JupyterLab version: 4.0.5
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