Open Keanel-19 opened 8 months ago
To clarify - is this new behaviour, i.e. things were working for you before, but got broken now, or have you just discovered it? What API are you trying to follow?
I discovered it by following the docstrings in the source file of interacts. I didn't find a better doc.
There is multiple errors with the
controls
argument of@interact
.To use it, the decorated function must have a
**kargs
argument so it can pass the controls.This code throw an error because it try to pass the proxy to
kargs
, because it's the first argument off
and doesn't have a default value. But in this casef
doesn't take any positional argument :I can resolve it by adding any argument before
**kargs
(any control or an argument for the proxy):In this case, it doesn't throw any error but sagecell add an input control with label kargs![image](https://github.com/sagemath/sagecell/assets/150344504/bc35905a-08c8-490b-a8a5-2185bbb0c4f9)
For now I just do this: