nixpkgs/pkgs/applications/science/math/sage/patches/ipywidgets-on_submit-deprecationwarning.patch
2023-01-18 15:56:21 +01:00

14 lines
754 B
Diff

diff --git a/src/sage/interacts/library.py b/src/sage/interacts/library.py
index 06d680109a..139b00bfd1 100644
--- a/src/sage/interacts/library.py
+++ b/src/sage/interacts/library.py
@@ -1434,6 +1434,8 @@ def riemann_sum(
creates the mathlet::
sage: interacts.calculus.riemann_sum()
+ ...
+ DeprecationWarning: on_submit is deprecated. Instead, set the .continuous_update attribute to False and observe the value changing with: mywidget.observe(callback, 'value').
Manual interactive function <function riemann_sum at ...> with 9 widgets
title: HTMLText(value='<h2>Riemann integral with random sampling</h2>')
f: EvalText(value='x^2+1', description='$f(x)=$', layout=Layout(max_width='41em'))