You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Sagemath tests after upgrading to ipywidgets 8.0.4, one of the tests emits the following deprecation warning:
DeprecationWarning: on_submit is deprecated. Instead, set the .continuous_update attribute to False and observe the value changing with: mywidget.observe(callback, 'value').
The stack trace reveals that the offending on_submit call is coming from ipywidgets itself, at
File "<doctest sage.interacts.library.?[0]>", line 1, in <module>
interacts.calculus.riemann_sum()
File "/nix/store/0yc2dwvpgvzj6mjp1495pz3bp2g7xrcd-python3-3.10.9-env/lib/python3.10/site-packages/sage/interacts/library.py", line 136, in library_wrapper
interact(f, **widgets_constructed)
File "/nix/store/0yc2dwvpgvzj6mjp1495pz3bp2g7xrcd-python3-3.10.9-env/lib/python3.10/site-packages/ipywidgets/widgets/interaction.py", line 510, in __call__
w = self.widget(f)
File "/nix/store/0yc2dwvpgvzj6mjp1495pz3bp2g7xrcd-python3-3.10.9-env/lib/python3.10/site-packages/ipywidgets/widgets/interaction.py", line 426, in widget
return self.cls(f, self.opts, **self.kwargs)
File "/nix/store/0yc2dwvpgvzj6mjp1495pz3bp2g7xrcd-python3-3.10.9-env/lib/python3.10/site-packages/sage/repl/ipython_kernel/interact.py", line 126, in __init__
super().__init__(f, options, **kwds)
File "/nix/store/0yc2dwvpgvzj6mjp1495pz3bp2g7xrcd-python3-3.10.9-env/lib/python3.10/site-packages/ipywidgets/widgets/interaction.py", line 211, in __init__
w.on_submit(self.update)
File "/nix/store/0yc2dwvpgvzj6mjp1495pz3bp2g7xrcd-python3-3.10.9-env/lib/python3.10/site-packages/ipywidgets/widgets/widget_string.py", line 145, in on_submit
deprecation("on_submit is deprecated. Instead, set the .continuous_update attribute to False and observe the value changing with: mywidget.observe(callback, 'value').")
File "/nix/store/0yc2dwvpgvzj6mjp1495pz3bp2g7xrcd-python3-3.10.9-env/lib/python3.10/site-packages/ipywidgets/widgets/utils.py", line 64, in deprecation
warnings.warn(message, DeprecationWarning, stacklevel=stacklevel+1)
File "/nix/store/abax98471z8fshv4b9p46bkh3lxmpy0z-python3-3.10.9/lib/python3.10/warnings.py", line 109, in _showwarnmsg
sw(msg.message, msg.category, msg.filename, msg.lineno,
:
DeprecationWarning: on_submit is deprecated. Instead, set the .continuous_update attribute to False and observe the value changing with: mywidget.observe(callback, 'value').
The text was updated successfully, but these errors were encountered:
Description
When running Sagemath tests after upgrading to ipywidgets 8.0.4, one of the tests emits the following deprecation warning:
The stack trace reveals that the offending
on_submit
call is coming from ipywidgets itself, atipywidgets/python/ipywidgets/ipywidgets/widgets/interaction.py
Line 211 in 9fd4c30
Relevant part of the stack trace:
The text was updated successfully, but these errors were encountered: