Open orionlee opened 5 months ago
Update: The error can be reproduced in the following simpler setup, displaying a FloatText
only.
The error also occurs if Text
is used instead of FloatText
.
%matplotlib inline
def create_widgets(initial_t0):
# the control
t0 = widgets.FloatText(
value=initial_t0,
step=0.1,
description=r"t0",
)
display(t0)
create_widgets(2);
Update 2: the problem seems to be that the browser has cached some incompatible (javascripts?) assets.
The same code works
Description
Update: it looks like the issue appears when the virtual environment is upgraded from notebook
7.0.x
to7.1.x
, and requires a "Empty Cache and Hard Reload" for the widgets to work. I don't know if the issue can be considered closed, or there should be a work item for ipywidgets / notebook to prevent it from happening in the future.Input widgets (e.g.,
FloatText
) do not appear to work with notebook v7.1.0 or later. After the widgets are rendered, changing the value of a input widget by typing a new value would:####
.Related:
Reproduce
With ipywidgets 8.x and notebook 7.1.x:
A screen recording:
Example notebook
Expected behavior
The interactive widgets should work. (The same codes work with
notebook 7.0.6
, but not 7.1.x)Context
Troubleshoot Output
Command Line Output
Browser Output (after the interactive widgets are rendered, before changing any input widget values)
Browser Output (after changing the value of the input widget)