| 1 | initial version |
(partial answer) The reason why you have different behaviors is that interact in jupyter notebook is not the same object as interact in a cell. You can check that
print(type(interact), interact.__module__)
prints
<class 'ipywidgets.widgets.interaction._InteractFactory'> ipywidgets.widgets.interaction in Jupyter notebook<class 'function'> interact_sagecell in the SageCell
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.